I you ever wanted to calculate the minutes , hours , days … years between 2 different dates in ActionScript 3 : this is how!
What will we need?
- first of all download the source file we will need to make these calculations in no time
- unzip the zip file and save those files into the project directory
Little information about the Date variable type
Constructor Parameters
Creating a new Date variable in flash can be done using the new Date function followed with setting the properties.
Blanc Date Constructor
Leaving the constructor blanc will create a new Date variable according to the current Date / Time of the local machine
Calculations with Dates

Calculations With Dates
Different calculation types of the DateUtilities

Calculation Types
Also interesting reads: