Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3462

A issue about the format() method of sap.ui.core.format.DateFormat

$
0
0

Hi dear colleges,

 

I meet a issue that the date format function in UI5.

 

I want to get the date format string like "2016-02-02T17:01:12.156+0800", in my local and WTS chrome the value is right, but in another windows 2008 server's chrome, the value is wrong, it becomes "2016-02-02T17:01:12.156".


My code is:

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

  pattern : "yyyy-MM-ddTHH:mm:ss.SSSZ"

  });

 

var createAtTime = oDateFormat.format(new Date());

console.log(createAtTime );

 

 

Could you help me to point what's the problem and how to solve it? Thank you.

 

Best regards,

Coco


Viewing all articles
Browse latest Browse all 3462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>