JasonO Posted October 19, 2009 Share Posted October 19, 2009 Hi, If I wanted to find the date (DD MM YY for example) of the next Tuesday (or any day I choose really) thats going to occur, how would I go about this? I've had a look at a few of the date functions but no idea where to start on piecing it together selecting the first date of a particular day I choose (Monday or Tuesday or Wednesday etc). Eg. The next Tueday is on... DD-MM-YY The next Satuday is on... DD-MM-YY Thanks! Jason Link to comment https://forums.phpfreaks.com/topic/178272-finding-the-date-of-the-next-particular-day/ Share on other sites More sharing options...
Daniel0 Posted October 19, 2009 Share Posted October 19, 2009 echo date('r', strtotime('next Tuesday')); Link to comment https://forums.phpfreaks.com/topic/178272-finding-the-date-of-the-next-particular-day/#findComment-939975 Share on other sites More sharing options...
JasonO Posted October 19, 2009 Author Share Posted October 19, 2009 That easy huh? Damn. I was searching for something for more advanced, missing it because it's that simple. Next time I'll make sure I Link to comment https://forums.phpfreaks.com/topic/178272-finding-the-date-of-the-next-particular-day/#findComment-939977 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.