MySQL Forums
Forum List  »  Newbie

date format and sort questions
Posted by: Ryan Bauer
Date: June 08, 2009 11:34AM

Hello I am very new to mysql and have a quick question. I have a table set up a events section of a project I am working on. there are three different fields for the date one for Year, month and day. After doing some research I think I set up the fields wrongs I believe the date should only be in one field.
My question is can I still sort by date with the current format and what ould be the code to do this. or do I need to drop the three fields and replace it with one field for the entire date. If there is only one field how should the user input the date format like this yyyy/dd/mm or yyyy-dd-mm. I know this is simple but I cannot seem to find a straight answer. can anyone please help.



Edited 1 time(s). Last edit at 06/08/2009 11:35AM by Ryan Bauer.

Options: ReplyQuote


Subject
Written By
Posted
date format and sort questions
June 08, 2009 11:34AM


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.