Skip to main content

Date Format

1 reply [Last post]
learnspring7
Offline
Joined: 2008-11-16

Please advice.

I have a Date value: "Wed Nov 12 07:56:33 EST 2008" (not a String value).

I need a code to convert (format) it to "2008/11/12" (yyyy.MM.dd).

Your help would be greatly appreciated.

Thank you very much.

Message was edited by: learnspring7

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
grayger
Offline
Joined: 2008-08-28

You can use java.text.SimpleDateFormat.