1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
2.6K views
by ron-s-6919 (4.5k points)
I need to format the TimeZone with a specific format for the receiving system.  How can I match the format they are expecting?

1 Answer

0 votes

You can use the TimeZone formatting options that are listed on this question:

 
Specifically, the 'z', 'Z' and 'X'.
 
Here are examples of how they work:
 
Format Result
yyyy-MM-dd'T'HH:mm:ss z 2015-06-08T14:32:33 MDT
yyyy-MM-dd'T'HH:mm:ss zzzz 2015-06-08T14:32:33 Mountain Daylight Time
yyyy-MM-dd'T'HH:mm:ssZ 2015-06-08T14:32:33-0600
yyyy-MM-dd'T'HH:mm:ssX 2015-06-08T14:32:33-06
yyyy-MM-dd'T'HH:mm:ssXX 2015-06-08T14:32:33-0600
yyyy-MM-dd'T'HH:mm:ssXXX 2015-06-08T14:32:33-06:00

 

by ron-s-6919 (4.5k points)
edited by sam-s-1510
...