gple Posted September 18, 2007 Share Posted September 18, 2007 Anyone know of way to take the current date (today) and get the date for the previous Thursday. Link to comment https://forums.phpfreaks.com/topic/69793-get-date/ Share on other sites More sharing options...
GingerRobot Posted September 18, 2007 Share Posted September 18, 2007 You want the date() and strtotime() functions: <?php //today echo date('d/m/Y').'<br />'; //last thursday echo date('d/m/Y',strtotime('last thursday')); ?> Link to comment https://forums.phpfreaks.com/topic/69793-get-date/#findComment-350634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.