Link to home
Start Free TrialLog in
Avatar of andieje
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
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial