MadDawgX Posted April 2, 2007 Share Posted April 2, 2007 Hey there, Using the 'date' field in my Mysql Table, how do I: 1. Determine the current time/date in Php, which can go into that date field 2. Determine whether or not it is 24 hrs. after the value in the date field. - Thanx Link to comment https://forums.phpfreaks.com/topic/45352-date-and-time/ Share on other sites More sharing options...
dough boy Posted April 2, 2007 Share Posted April 2, 2007 1. Use the NOW() function in the query to set the current date 2. I do not understand the question. Are you talking about when you pull it how to display it? Link to comment https://forums.phpfreaks.com/topic/45352-date-and-time/#findComment-220210 Share on other sites More sharing options...
trq Posted April 3, 2007 Share Posted April 3, 2007 1. Use mysql's CURRENT_TIMESTAMP function. 2. Use mysql's TIMESTAMPDIFF function. Link to comment https://forums.phpfreaks.com/topic/45352-date-and-time/#findComment-220213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.