Hi everyone
I’m working on the Graduation Dinner website of my school and I found something weird about the getMonth() function…
Consider the following codes:
var date = new Date()
var month = date.getMonth()
trace(month)
It’s April at the moment, right? But the output shows March (i.e. 3 instead of 4). So does the function getMonth() count January as 0 and so on? I’ve checked my computer’s clock and yes, my computer is showing April.
Any help is highly appreciated. Thank you.