I easily get Week Number using MySql Week function like this WEEK(SYSDATE())
I just wanted to know how to get from and to date using week number in MySQL.
Result required:
Week No From date To date
Week 25 June 18, 2012 June 24, 2012
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.
This works great for this kind of job:
Beware that first day of week here is Sunday. It may depends on your country convention 😉