i was trying to create automatically add day but result still math calculation not date calculation. example if you create +14 and you choose date 20-11-2016 the result should be 04-12-2016 but my function result still math calculation and result 34-11-2016. thanks for your help.sorry bad english
private function useDate(df_start:CalendarLayoutChangeEvent):void {
// Make sure selectedDate is not null.
if (df_start.currentTarget.selectedDate == null) {
return
}
//Access the Date object from the event object.
df_target.text=df_start.currentTarget.selectedDate.getFullYear() +'-'+
(df_start.currentTarget.selectedDate.getMonth()+ 1) +'-'+
(df_start.currentTarget.selectedDate.getDate() + 14);
}