Jump to content
Larry Ullman's Book Forums

How To Compare Timestamp To Today?


Recommended Posts

Hi. I'm modifying the 'quotes' script in chapter 13 to include a statement before the quotes that indicates a 'new' or 'recent' quote if the quote was entered within the last 30 days. I know I need to use $row[date_entered] (type timestamp in mysql, e.g. 2014-03-09 13:25:11). Is there a function to compare that timestamp with today (in number of days)? Thanks.

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...