package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var now = new Date( ); var day = now.getDate( ); var month = now.getMonth( ); // Returns an integer between 0 and 11 trace(day); trace(month); } } }