Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
leoalvesmachado #1
Date in the Datagrid
Hi everyone
I recieve from a Java back end application a list of objects to populate my
Datagrid. One field of these objects is "creation time" - a long value that
holds the time when the object was created. How do I convert this long to a
Date in my Datafield?
thanks in advance
leoalvesmachado Guest
-
Sort by Date in Datagrid
I can`t Sort by Date in Datagrid, it didn`t read the values as date, it is listed like text. Someonte knows a script to make it correctly? Thank`s. -
Date formating in DataGrid
I have a datagrid ( bound to a resultSet via Java remoteobject service ). One of the fields is a datetime field (DOB). I wish to format the date... -
DataGrid with date column that is sometimes blank
A column in my data source is of type DateTime and "no date" is represented as DateTime(0). How can I get the DataGrid to display the column as... -
datagrid sort by date
Hi! I have a datagrid which is populated from an Access database. I have a column in the database and in the datagrid where the values are of the... -
>>Here's a Datagrid sort by date AS<<
Use the following actionscript to sort a datagrid by date. I needed an AS like this, but because I couldn't find any others I had to write it... -
anoweb #2
Re: Date in the Datagrid
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.
anoweb Guest
-
javamonjoe #3
Re: Date in the Datagrid
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.
javamonjoe Guest
-
ntsiii #4
Re: Date in the Datagrid
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:
YYYY-MM-DDThh:mm:ss-[timezoneoffset]
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.
Tracy
ntsiii Guest



Reply With Quote

