JSHINER Posted June 23, 2008 Share Posted June 23, 2008 How can I get two variables. One current DATETIME (2008-06-23 12:36:15) and the other a DATETIME 30 days from now. So I would end up with: dateNow = "2008-06-23 12:36:15"; dateThen = "2008-07-22 12:36:15"; Link to comment https://forums.phpfreaks.com/topic/111533-solved-quick-question-about-dates/ Share on other sites More sharing options...
bsamson Posted June 23, 2008 Share Posted June 23, 2008 <?php $dateNow = date("Y/m/d H:i:s"); $dateThen = date("Y/m/d H:i:s", strtotime("+ 30 days")); ?> Link to comment https://forums.phpfreaks.com/topic/111533-solved-quick-question-about-dates/#findComment-572442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.