How convertSQLDate looks like ? Can you paste full code.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12713.html
Sent from the Apache Flex Users mailing list
Here is the data string coming from DB via JSON:
"eventDate":"2010-04-28"
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12712.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
mxm2:Date = new Date();
var tnum:Number = mxm2.time;
for (var i2:int=0; i2http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12711.html
Sent from the Apache Flex Users mailing list archive at
Did you try "if (tempDate.time > mxm.time)" ?
Also, you should check if the first one is parsed ok! So check mxm after:
var mxm:Date = convertSQLDate(ac1[0].eventDate);
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Da
t be NULL.
>
> Is there a way to convert all objects in an ArrayColelction (that comes via
> JSON form DB) to Date object?
>
> Thanks,
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12
g()
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12437.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
JSON form DB) to Date object?
Thanks,
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12436.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
nt in it will be your max date. :)
[1]
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html#time
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Determining-Maximum-Date-from-Array-tp
ormat.
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.