I decided to use time instead of string date in MySQL, but I want to know whether it is a good idea. For example I use:
1268557200
instead of:
Sun, 14 Mar 2010 09:00:00 GMT
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Of course is it better a special type. The database is optimized for such types. E.g. your string there has very much chars the date types are internally ints or longs which just take 4 or 8 bytes.