Jump to content

Create a timestamp in php


magnetica

Recommended Posts

I want to make two timestamps so I can SELECT everything in the DB between these two dates.

I need the first timestamp to be the last month so if it February now then the first timestamp should be "2010-01-01 00:00:00" and the second should be the last day in the month so with this example it would be "2010-01-31 00:00:00".

 

How do I go about doing this?

 

Thanks Sean

Link to comment
https://forums.phpfreaks.com/topic/190352-create-a-timestamp-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.