I think there is no problem in your query but there should be a problem in your database
if you are saving your date in int or tinyint it cant save time stamp in the int or tiny int
but you have to save this format in varchar hope fully it wil work finr for you...
phpdeveloper