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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting dates

Status
Not open for further replies.

JOBARAM

Programmer
May 25, 2002
52
IL
Hi,
I created a big Mysql database that includes dates values.
I need to convert all dates to a specific format.
Can I do it through Alter Table ? How can I change all Dates format if not?
Thanks
Yossi
 
if the datatype of the date column is datetime, you should not attempt to change it, but rather, use the DATE_FORMAT() function to display the date in the format you want


rudy
 
Yes I have noticed Mysql has only one format to enter Dates.
Tanks for the tip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top