Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

How to set local culture date time?

$
0
0

var oDateFormat = sap.ui.core.format.DateFormat.getInstance({ 

                                                                     source:{pattern:"yyyyMMdd"}, 

                                                                     pattern: "yyyy-MM-dd"}); 

            oDate = oDateFormat.parse(mStartDate.getYyyymmdd()); 

            formattedDate = oDateFormat.format(oDate);

 

When i try this code, for example if i try to display the date means, it takes the local server date, (if i want to display 2014/01/01 means its displaying 2014/01/02) i need to avoid the local culture. Will anyone please help on this issue?


Viewing all articles
Browse latest Browse all 831

Trending Articles