PDA

View Full Version : DateChooser Component


Jon Lai
07-26-2006, 03:44 PM
In Flash, there's a Datechooser component. What function can I use to seperate the Date, Month, Year, of the chosen date into three seperate variables?

keeprighton1974
08-01-2006, 07:53 PM
try this in your script to get you started:

trace(datechooser_dc.selectedDate.getDate());

and .getDay() / .getMonth() / .getYear()



.getYear() seems be the number of years the selected year is from 1900 so the following would give "06" if you chose a date in 2006:

yearchosen = datechooser_dc.selectedDate.getYear()-100;