If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Dates displaying as 10/29/2003 instead of 29/10/2003

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-08-03, 10:11
eastwood eastwood is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
Dates displaying as 10/29/2003 instead of 29/10/2003

I have a table in mysql which has a column of datetime

when i run a query in mysql control panel and the dates are returned they are returned as 2002-04-22 00:00:00 yet if i run a an ASP page using myodbc to connect to the server and i print the same column out on the web page it comes out as 4/22/2002.

I have no formtting on the date field just as its returned from the ado recordset.

Anyone had the same problem and know how to fix it?


Cheers.
Reply With Quote
  #2 (permalink)  
Old 10-08-03, 10:46
Mincer Mincer is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 56
That is MySQL's default dete format.

You need to look at the function DATE_FORMAT()

Regards,
Matt.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On