Jump to content

Compare MySQL timestamp with todays date


cozzy1984

Recommended Posts

Hi there, I'm looking to compare a timestamp that was automatically created by the mysql database when each record was created with todays date. Firstly i believe i have to get it into the same format tho and was looking for pointers on how to do this.

 

Currently if i echo the value of the timestamp in one of the database records it reads: 2008-02-15 15:31:14

 

Been looking around but haven't had much luck on this, so wondering if you guys could help.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/94464-compare-mysql-timestamp-with-todays-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.