Revision: 7694
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 6, 2008 14:21 by FlashJunior
Initial Code
public static function getDaysBetweenDates(date1:Date,date2:Date):int { var one_day:Number = 1000 * 60 * 60 * 24 var date1_ms:Number = date1.getTime(); var date2_ms:Number = date2.getTime(); var difference_ms:Number = Math.abs(date1_ms - date2_ms) return Math.round(difference_ms/one_day); }
Initial URL
Initial Description
Initial Title
Get difference between two dates in days
Initial Tags
Initial Language
ActionScript 3