Reputation: 21935
I've been working a lot with dates and various capacities for the past month. I can't seem to find any decent documentation on working with dates in javascript.
for example: PHPfreaks has a wonderful explanation of any and all date() functions.
I just want to make sure I am properly utilizing all of the date object's methods.
W3schools has the best explanation that i've found.
So i'm taking the opportunity to utilize SO -
Upvotes: 2
Views: 4616
Reputation: 10377
This is a good reference: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Date
Upvotes: 2
Reputation: 9323
I found the w3schools link to be helpful. I think it does list all date methods, including getMonth().
One odd behavior thing to take note of is that getMonth returns the month in terms 0-11, where getDate returns day of the month 1-31, so when using getMonth you need to know to add 1 if you want the month in terms 1-12.
Upvotes: 1