I used the second query/posting sent by "inosov" and it work fine for me. I am using timestamp also along with the date.

Thnakyou Guys for all you support.