【发布时间】:2012-01-19 04:49:30
【问题描述】:
我想将日期分配给 DD-MM-YYYY 格式的日期字段。那就是我收到字符串Closure_Date,其中包含DD-MM-YYYY 格式的日期。我想将该日期分配给日期字段,例如
dtCloseDate.selectedDate=new Date(Closure_Date);
在这种情况下,如果 Closure_Date 包含 16/11/2011 则需要 16 个月,因此需要 12 并加上剩余的 4 个月,然后返回 04/11/2012。
我的问题是如何将日期(DD-MM-YYYY)分配给 DateField?
如果我使用 Dateformatter(DD-MM-YYYY) 像 dtCloseDate.selectedDate=new Date(Dateformatter.format(Closure_Date)); 它返回 NaN
【问题讨论】:
标签: apache-flex datefield