I have a string in the format yW. Year followed by the week number. I would like to get a timestamp. I am using Php 5.2.17 on Windows.
strtotime() does not seem to be working reliably. For the string ‘1142’ it should return the first day of the 42nd week of 2011.
Any suggestions on how to do this?
Give this a go, will work on windows also…
subtract 1 from week if week 1 is the first week of the year