I know that this little javascript code,var whatever = new Date(year, month, 0).getDate()
, returns the number of days in a particular month of a particular year. But what I don’t seem to understand is the logic behind it.
What exactly is that zero doing there after we mention the year and the month? Please Explain.
Date
constructor for anything else. ;) – Ragsdale