Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help in date formats 1

Status
Not open for further replies.

royboy75

Programmer
Feb 13, 2007
114
GB
Hello,

I am pulling from a database a date which is a string with this representation: For February 2007 it will be 200702, For March 2007 it will be 200703 and so on.
I need to transfer it to this format: 02.2007, 03.2007 to use it in a different source.
Can someone help me with this formatting please?

 
Code:
String newDate = dbDate.subString(4,6) + "." + dbDate.subString(0,4);

Tim
 
Thanks Tim, I was wondering around Date formats when I could have done it in strings :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top