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. Quote 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')); ?> Quote Link to comment https://forums.phpfreaks.com/topic/69793-get-date/#findComment-350634 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.