J
John Smith
I need to convert "20050930" to "9/30/2005 12:00:00.000 AM" using Java
Strings and (perhaps?) regular expressions.
The idea is to match 2005 as the year, and put it under the [yyyy] part
of mm/dd/yyyy, then match the next 2 digits of mm, then the next 2
digits of dd, etc. I need to scan the "20050930" string 1 character at
a time.
Should I use regular expressions? Or is there a simpler method?
Examples will also be appreciated.
Strings and (perhaps?) regular expressions.
The idea is to match 2005 as the year, and put it under the [yyyy] part
of mm/dd/yyyy, then match the next 2 digits of mm, then the next 2
digits of dd, etc. I need to scan the "20050930" string 1 character at
a time.
Should I use regular expressions? Or is there a simpler method?
Examples will also be appreciated.