MySQL Forums
Forum List  »  MySQL for Excel

Re: set date format for column
Posted by: Suzanne Chipman
Date: August 03, 2011 11:48AM

SELECT SaleDate FROM `new` DATE_FORMAT(SaleDate,'%m-%d-%Y')

I put it in msql as yyyymmdd now and uploaded it as DATE ... now I can't figure out the rest. It still shows up in "browse" as 7/21/2001 though.

So to make it have the leading zeros I need the %m/%d/%Y one, but I don't know how to write the query.

Can you help? table name is: new and the column name is: SaleDate

Sorry I'm so.... well sorry I can't figure this out.

Options: ReplyQuote


Subject
Views
Written By
Posted
4849
August 03, 2011 02:09AM
2054
August 03, 2011 05:53AM
1716
August 03, 2011 09:31AM
2246
August 03, 2011 09:51AM
Re: set date format for column
1535
August 03, 2011 11:48AM
1328
August 03, 2011 12:04PM
1543
August 03, 2011 12:23PM
1434
August 03, 2011 01:45PM
1385
August 04, 2011 11:55PM
1313
August 03, 2011 09:33AM
1381
August 03, 2011 09:43AM
1349
August 03, 2011 11:40AM
1380
August 03, 2011 01:47PM
1491
August 03, 2011 01:01PM
1437
August 03, 2011 01:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.