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
5131
August 03, 2011 02:09AM
2182
August 03, 2011 05:53AM
1824
August 03, 2011 09:31AM
2444
August 03, 2011 09:51AM
Re: set date format for column
1652
August 03, 2011 11:48AM
1446
August 03, 2011 12:04PM
1658
August 03, 2011 12:23PM
1534
August 03, 2011 01:45PM
1494
August 04, 2011 11:55PM
1429
August 03, 2011 09:33AM
1491
August 03, 2011 09:43AM
1457
August 03, 2011 11:40AM
1491
August 03, 2011 01:47PM
1598
August 03, 2011 01:01PM
1550
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.