Flex ~DateField get date value format YYYY-MM-DD

MXML
<mx:DateField id="toDate" formatString="YYYY-MM-DD" />


Action Script
trace(toDate.text);


output
2010-12-28

沒有留言: