I have a Datagrid that gets its data from the beans beans model's ArrayCollection. ArrayCollection Outcomes is a list of Result
<s:DataGrid dataProvider="{outcomes}">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="outcome" headerText="Outcome" width="120"/>
<s:GridColumn dataField="dateRequired" headerText="Date Req" width="130"/>
</s:ArrayList>
</s:columns>
</s:DataGrid>
Outcome.as
[Bindable]
public class ASPersonalOutcomeSummary {
public var _outcome:String;
public var _dateRequired:Number;
}
The problem is that dateRequired is represented as Number, this constructive decision was made, so the transition between the AS client and the Java server is simplified.
I really want to display this number as a date string (e.g. February 1, 2011 or something like that), but since it is a number, it just displays as a timestamp in a datagrid ... for example.
Results | Date required
blahhhhhh | 12389712987
blahhhhh2 | 13242342349
Any ideas?
p_mcp source
share