How to get today's date in ActionScript 3 (AS3)

The Date() constructor takes up to seven parameters (year, month, ..., millisecond) to specify a date and time to the millisecond.

The date that the newly constructed Date object contains depends on the number, and data type, of arguments passed.

If you pass no arguments, the Date object is assigned the current date and time.

var todaysDate:Date = new Date();

comments powered by Disqus