947740 Posted June 8, 2009 Share Posted June 8, 2009 Anybody have some quick code for finding the timestamp for Sunday of this week? Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/ Share on other sites More sharing options...
thebadbad Posted June 8, 2009 Share Posted June 8, 2009 strtotime('sunday') Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851750 Share on other sites More sharing options...
947740 Posted June 8, 2009 Author Share Posted June 8, 2009 strtotime('sunday') And it is moments like these where I realize how stupid the question is. Thanks. Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851752 Share on other sites More sharing options...
thebadbad Posted June 8, 2009 Share Posted June 8, 2009 strtotime() is a lovely function when dealing with dates. Remember that next time Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851754 Share on other sites More sharing options...
947740 Posted June 8, 2009 Author Share Posted June 8, 2009 strtotime() is a lovely function when dealing with dates. Remember that next time Yeah...just had a lapse of concentration. Quick question though...If it is Saturday, will it return the Sunday after (the next day) or the Sunday 6 days before? Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851755 Share on other sites More sharing options...
thebadbad Posted June 8, 2009 Share Posted June 8, 2009 It will return 2009-06-14 until it becomes Monday, next week. Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851763 Share on other sites More sharing options...
947740 Posted June 8, 2009 Author Share Posted June 8, 2009 It will return 2009-06-14 until it becomes Monday, next week. Okay. Thanks. Link to comment https://forums.phpfreaks.com/topic/161403-solved-sunday-timestamp/#findComment-851765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.