This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It looks like UTC encoded time. Here is a class that might help you. 20040304002300Z-0500 would translate into 2004-03-04 (March 4, 2004). Then there is usually a 'T'. 002300Z would be 23 minutes and 0 seconds after midnight. -0500 means 5 hours west of GMT (Greenwich Mean Time). You can probably figure out the other date.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
No need for the replaceAll() call now. Note too that the call to new String() has been removed, since it never served any purpose at all. It is extremely rare that the new String(String) constructur is really useful for anything; most of the time it just creates another identical String for no reason. [ January 10, 2005: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister
Joined: Sep 10, 2001
Thanks. My problem is that my data will actually come from a variable. So how woudl I do it via a variable instead of ever actually seeing the real string.