Jump to content

Selecting a date range


tibberous

Recommended Posts

I need to get all of the records from the last 30 days. I was hoping to do math on dates like a normal timestamp, but mysql handles them weird.

 

December 15, 2008 is 20081215 -- YYYYMMDD

 

Can't do math on it.

 

Is there a way to get dates in a format I can do math on? Like, as days from the epoch or something?

Link to comment
https://forums.phpfreaks.com/topic/137492-selecting-a-date-range/
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.