smith.james0 Posted May 14, 2007 Share Posted May 14, 2007 I have the following code $day1 = mktime (0,0,0,1,1,$year); $days = ($week - 1) * 7; $d = strtotime ("+$days days", $day1); $dow = date('w', $d); $sunday = strtotime ("-$dow days", $d); $saturday = strtotime ("+6 days", $sunday); to give me the timestamp on sunday and saturday for a given week and year. The problem I have is that it's giving it at 23.00 hours when i need it at 0.00 hours. 1179010800 translates to Saturday, May 12th 2007, 23:00:00 (GMT) Can anyone see the problem? Many Thanks James Quote Link to comment https://forums.phpfreaks.com/topic/51280-help-need-with-dates/ Share on other sites More sharing options...
smith.james0 Posted May 16, 2007 Author Share Posted May 16, 2007 Can anyone help? James Quote Link to comment https://forums.phpfreaks.com/topic/51280-help-need-with-dates/#findComment-254299 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.