on 05-06-2015 5:55 AM
Hi,
when i print the date it show in different format. can you please give some idea. I attach the image check that,.
Hi Vinoth,
As Maksim said you can use the formatter function here. Sample code below
formatter : function(oDate){
if (!oDate) {
return "";
}
jQuery.sap.require("sap.ca.ui.model.format.DateFormat");
var oDateFormatter = sap.ca.ui.model.format.DateFormat.getDateInstance({style:"long"});
return oDateFormatter.format(oDate);
}}
Thanks,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
broken image
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that is odata date format, how do you load the data? odatamodel should take care of it
special case scenario - formatter with something like
sap.ui.core.format.DateFormat.getDateInstance({
style : "medium"
//or pattern : "yyyy/MM/dd hh:mm" or whatever you need
}).format( eval('new ' + datestr.replace(/\//g, '')) )
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.