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
5188
August 03, 2011 02:09AM
2216
August 03, 2011 05:53AM
1847
August 03, 2011 09:31AM
2470
August 03, 2011 09:51AM
Re: set date format for column
1677
August 03, 2011 11:48AM
1464
August 03, 2011 12:04PM
1684
August 03, 2011 12:23PM
1569
August 03, 2011 01:45PM
1514
August 04, 2011 11:55PM
1448
August 03, 2011 09:33AM
1506
August 03, 2011 09:43AM
1480
August 03, 2011 11:40AM
1511
August 03, 2011 01:47PM
1623
August 03, 2011 01:01PM
1575
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.