andieje
asked on
getting the date of the first and last day of the current month
Hello
I dont program in javascript so i was hoping i might be able to get some help from this forum.
I need some javascript which, when a webpage loads, gets the current date and then gets the date of the first and last day of the current month. So for example today is 12th of June and the javascript would work out that the current month is June and that the first day of the month is 2013-06-01 and the last day of the month is 2013-06-30.
This code will go in the document ready jquery function that already exists on the page.
thanks a lot
I dont program in javascript so i was hoping i might be able to get some help from this forum.
I need some javascript which, when a webpage loads, gets the current date and then gets the date of the first and last day of the current month. So for example today is 12th of June and the javascript would work out that the current month is June and that the first day of the month is 2013-06-01 and the last day of the month is 2013-06-30.
This code will go in the document ready jquery function that already exists on the page.
thanks a lot
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
See http://jsfiddle.net/VGRcW/3/