Re: Determining Maximum Date from Array

2016-05-17 Thread piotrz
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

Re: Determining Maximum Date from Array

2016-05-17 Thread core000
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.

Re: Determining Maximum Date from Array

2016-05-17 Thread core000
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

Re: Determining Maximum Date from Array

2016-04-23 Thread Nemi
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

Re: Determining Maximum Date from Array

2016-04-13 Thread Evyatar Ben Halevi-Arbib
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

Re: Determining Maximum Date from Array

2016-04-11 Thread piotrz
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.

Re: Determining Maximum Date from Array

2016-04-11 Thread core000
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.

Re: Determining Maximum Date from Array

2016-04-11 Thread piotrz
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

Determining Maximum Date from Array

2016-04-11 Thread core000
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.