I want to get a timestamp of the current hour and the current day. How I can do this?
I store a timestamp as a datetime in my database, so I want compare my data like this:
- How many records were inserted during the current hour
- How many records were inserted during the current day
Thanks for your help