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

Date format in MySQL table

Status
Not open for further replies.

Inandjo

Programmer
Dec 7, 2001
46
FR
hi,
i'm using MySQL 3.23.24 release in conjonction with BDE 1.0 and MyODBC 3.50.36, and the problem i have is that i want to be sure that under any OS, any machine, MySQL WILL store dates as yyyy-mm-dd.
I'm trying to port an application from Dbase to mysql and the date field are really problematic.
 
Try using date_format function. Example:

select date_format(wLastLogin,'%Y + %m + %d')
from Users

will return string like "2002 + 03 + 12"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top