0

I have to format date in a google Apps script but i have a mistake.

In the oracle documentation (link in the google Apps script help )[https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html] , the format string to add Timezone is :

"yyyy-MM-dd'T'HH:mm:ss.SSSXXX" => 2001-07-04T12:08:56.235-07:00

When i use that format string with Google Apps script, the formated date is (without milliseconds) :

"yyyy-MM-dd'T'HH:mm:ssXXX" => 2022-06-05T22:00:00+0000 (the colon doesn't appear).

Is a bug or I doesn't have understand ? Thanks for your help.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.