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
5384
August 03, 2011 02:09AM
2285
August 03, 2011 05:53AM
1921
August 03, 2011 09:31AM
2596
August 03, 2011 09:51AM
Re: set date format for column
1752
August 03, 2011 11:48AM
1554
August 03, 2011 12:04PM
1766
August 03, 2011 12:23PM
1649
August 03, 2011 01:45PM
1623
August 04, 2011 11:55PM
1531
August 03, 2011 09:33AM
1589
August 03, 2011 09:43AM
1566
August 03, 2011 11:40AM
1625
August 03, 2011 01:47PM
1704
August 03, 2011 01:01PM
1666
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.