|
MySQL handles the data types 'date' and 'timestamp', you should use them. For the dropdown selectors, you could have i.e. one for day, one for month, and one for year, then you put them together. When you insert a date to the database you should suply it as a string in the form of "YYYY-MM-DD", or in the case of timestamp "YYYY-MM-DD HH:MM".
Since they are represented as string you could of course use a varchar, but with the date and timestamp types MySQL will also sort them correctly when using 'ORDER BY'.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 12-28-2009 at 05:35 AM..
|