flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piotrz <piotrzarzyck...@gmail.com>
Subject Re: Determining Maximum Date from Array
Date Mon, 11 Apr 2016 19:05:46 GMT
Hi,

Since in your ArrayCollection you have Date objects you can use "time" [1]
property to determine max date.

Simply use "Sort" function in ArrayCollection to sort dates descending using
"time" property as an sort field. Once you sort your collection - first
element 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
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12435.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message