import mx.events.CalendarLayoutChangeEvent;
private function useDate(eventObj:CalendarLayoutChangeEvent):void {
if (eventObj.currentTarget.selectedDate == null) {
return
}
day.text = eventObj.currentTarget.selectedDate.getDay();
date.text = eventObj.currentTarget.selectedDate.getDate();
month.text = eventObj.currentTarget.selectedDate.getMonth();
year.text = eventObj.currentTarget.selectedDate.getFullYear();
wholeDate.text = eventObj.currentTarget.selectedDate.getFullYear() +"/" +(eventObj.currentTarget.selectedDate.getMonth()+1) + "/" + eventObj.currentTarget.selectedDate.getDate();
}