This content has been marked as final. Show 3 replies
You could try, new Date(Date.parse(<your java value here>))
I am in a similar situation but I wasn't sure how to get it done. So I just ended up doing a .ToString on the date/time object before giving to it to Flex.
You need to specify a label function for your column. With the label function you may format your data in any way you wish without actually changing the data.
If it is a long, then it must be something likd "ticks" or milliseconds since som data. I do not know java well enough, or when it starts its dates, but it may not be the same a AS.
So I thinkAnoweb's idea, convert the long into some recognizable date string on the server is a good idea. i am standardizing on the ISO date string format:
Note that the AS data.parse cannot read that directly drat it, so I have a library ov conversion funtions to work with that format.