on 04-22-2017 10:37 AM
Hi All,
How to format the Date and time in sapui5 application. Formatter option is not working. Please suggest some idea. Shared the tried code also. The output from oData is:
<d:Approved_DateTime>2017-04-21T12:20:29</d:Approved_DateTime>
new sap.m.ObjectAttribute({ text:"{ path: 'Approved_DateTime', type: 'sap.ui.model.type.DateTime',formatOptions: {style: 'medium'}}" });
Expected Output:
Apr 22, 2017 12:20:29
new sap.m.ObjectAttribute({
text:"{
path: 'Approved_DateTime',
type: 'sap.ui.model.type.Date',
formatOptions: {
source: {
pattern: 'yyyy-MM-ddTHH:mm:ss'
},
pattern: 'MMM dd,yyyy HH:mm:ss'
}
}"
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.