This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes change date format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "change date format" Watch "change date format" New topic
Author

change date format

Dharmender Singh
Greenhorn

Joined: Jun 14, 2007
Posts: 16
how we can change the format of the date as in MySql the date format is yyyy-MM-dd
Srivatsa Katta
Ranch Hand

Joined: Aug 13, 2005
Posts: 55
Hi,

Have a look @ java.text.SimpleDateFormat API for all date format related things.

Regards,
Srivatsa Katta
mohit bahl
Ranch Hand

Joined: Mar 22, 2006
Posts: 48
hi,

you can check this post here

this might solve your query.

cheers!
mohit


to err is human, but the company policy doesn't allow it!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: change date format
 
Similar Threads
Get the Difference between 2 dates
Rendering dates from long values in JTable
Date Format
date time
servlets and sql