I'm using form elements to create a datepicker. You can either pick a year, a month and a day. Or you can pick a year and a week. I'm struggling with the week bit.
You select a start year and a start week and then an end year and an end week.
Let's say you pick 4 as the start week and 7 as the end week. I then want Monday week 4 as the start date and Sunday week 7 as the end date.
How do I get those dates in the format YYYY-MM-DD? Don't know where to start!
What I have now is four dropdown menus. Start year, start week, end year and end week. Anyone able to point me in the right direction?
