package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var timeOfWriting:Date = new Date(2007, 0, 28, 14, 36, 42, 16); var daysOfWeek:Array = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; trace(daysOfWeek[timeOfWriting.day]); } } }