Monday, March 8, 2010

Calculating Number of Days between two dates

private function calcuateDays( start:Date, end:Date ) :int
{
var daysInMilliseconds:int = 1000*60*60*24
return ( (end.time - start.time) / daysInMilliseconds );

No comments:

Post a Comment