PDA

View Full Version : how to get weeks based on date



chinnib37
5 Dec 2013, 4:15 AM
Hi,

I have to get weeks based on a date and show them in a dropdown.

here I have start date and end date.
I have to prepare this dropdown based week start date.
example view:
47127

give me one idea to solve this..

scottmartin
5 Dec 2013, 6:27 AM
This should be just a matter of performing some basic JS date functions to populate the values you want.

There are numerous date libs out the that can help:
http://codegeekz.com/6-javascript-date-libraries-for-developers/

You can also google: 'javascript date week' to get week info if you do not want to use an outside lib.