I have a database table in which I am storing records with unix timestamp.
I now need to get records month wise and date wise. How do I do that ?
In month wise I should get say all records that are of month June then it should so all the records of June, 2011.
And when date wise it should then show all of the specific date.
How to achieve ?
WHERE yourcolumn >= UNIX_TIMESTAMP('2011-06-01')
AND yourcolumn < UNIX_TIMESTAMP('2011-07-01')
Thanks it was so easy.