How do I get the first day of a given week whose week number is available?
For example as I write this post we are at WEEK 29.I would like to write a MySQL query that will return Sunday 18 July using this WEEKNO 29 as the only available parameter.
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.
You can use:
This would give you the Monday date of week 3 of 2010, which would be 2010-01-18.
Another example:
Would give you the Sunday date of week 52 of 2010, which would be 2010-12-26.
And finally, using your original example:
This gives 2010-07-18.