Jump to content

Validating a date


Dustin013

Recommended Posts

I am using the date option in mySQL and I want to tell php to check to see if the date is 72 hours old or newer. Is that possible?

 

2008-06-23 17:50:17  is the format of the date entered into MySQL database.

 

How would I go about writing a script that would check to see if the date was at at most 71hrs, 59min, 59sec old?

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