tapan — 2011-07-04T04:14:21-04:00 — #1
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 ?
r937 — 2011-07-04T04:20:23-04:00 — #2
WHERE yourcolumn >= UNIX_TIMESTAMP('2011-06-01')
AND yourcolumn < UNIX_TIMESTAMP('2011-07-01')
tapan — 2011-07-04T04:22:21-04:00 — #3
Thanks it was so easy.