Hi
Does anyone know a way to return the number of days in a given month?
Thanks
Printable View
Hi
Does anyone know a way to return the number of days in a given month?
Thanks
Google search returns plenty of results, here is one:
http://www.gotoandlearnforum.com/vie...=19975&p=97144
Thanks!
Ended up using this though:
Code:var tempDate:Date = new Date();
var newDate:Date = new Date(tempDate.getFullYear(), tempDate.getMonth() + 1, 0);
return newDate.getDate()