I have for example:
$week_number = ’13’;
$year = ‘2012’;
13 week in 2012 year this is range days from 26.03.2012 to 1.04.2012. How can i get and show this with PHP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
strtotime()function understands a nicely nuanced grammar for describing times.Note that
strtotime()appears to count full weeks, starting on Sundays. So January 1st 2011 would have been considered to be “week zero” of that year.YMMV. Salt to taste.