benphp Posted March 26, 2010 Share Posted March 26, 2010 I have a date = 2010-03-26 and I wan to know what week number it is between 1 and 52. Seems like an easy thing, but I can't find it. Anybody know of an easy way? Thanks! Link to comment https://forums.phpfreaks.com/topic/196634-how-to-get-the-week-number-of-a-date/ Share on other sites More sharing options...
benphp Posted March 26, 2010 Author Share Posted March 26, 2010 Nevermind: $shiftWeek = "$year-$month-$day"; $shiftWeek = strftime("%W", strtotime("$shiftWeek")); Link to comment https://forums.phpfreaks.com/topic/196634-how-to-get-the-week-number-of-a-date/#findComment-1032386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.