Is there a way to find the weeknumber within the year using PHP?
A:
I believe the most standard is called GPS Week Number, see http://www.ngs.noaa.gov/CORS/Gpscal.html
Current week ID is 1578.
Pavel Radzivilovsky
2010-04-06 12:23:12
+5
A:
You can do this using date
, using the W
format string, which returns:
ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)
e.g.
date("W");
Dominic Rodger
2010-04-06 12:26:16
heh. Dominic beat me to it by 30 seconds...
Steve
2010-04-06 12:27:32
So I did, +1 :)
Dominic Rodger
2010-04-06 12:34:52