Load Current year(Instead of 1900) in Flex DateField when tab out for partially entered date

StackOverflow https://stackoverflow.com/questions/17563548

  •  02-06-2022
  •  | 
  •  

In Flex Date Field i have entered partial date like below

12/15/
12-15-

then date is loaded as 12/15/1900 for the above both cases when focusing out from flex DateField.

but i would like to load entered date with current year instead of 1900(Eg : 12/15/2013).

kindly anyone give me succession to load date with current year.

Thanks

有帮助吗?

解决方案

add eventlistener to datachange, and

if (date.year==1900) date.year = new Date().year; 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top