DateTimeFormat problem

This keeps getting deleted…hopefully this one sticks!

Here’s the issue…
I am unable to get the pub.dateTimeFormat service to correctly give me a “+” or “-” for the time zone after trying several combinations.

Here is what I am doing:
inString: 20031230T11:22:33+11:00
currentPattern: yyyyMMdd’T’HH:mm:ss hh:mm
newPattern: yyyyMMdd HH:mm:ss ‘GMT’[+/-]hh:mm (where [+/-] should be what is passed in on the inString)

The new format
should be: 20031230 11:22:33 GMT+11:00
I am getting: 20031230 11:22:33 GMT 11:00

How do I get the +/- to show up in the time format like it is being passed in? There are a few time zones that are - of GMT, so I want to differentiate. Is there some type of wildcard or regex-like character that can be used to get the +/-? Thanks…

Try below pattern

“yyyy-MM-dd HH:mm:ss z”

Brian,

Your post is still here http://www.wmusers.com/wmusers/messages/117/25572.shtml?1063760761

Are you perhaps viewing the message board using either the “Quick Search (1 Day)” or “Quick Search (1 Week)” views? If so, you would not be able to see a post older than one day or one week respectively.

Mark