You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by core000 <ka...@gmail.com> on 2016/05/17 20:36:57 UTC

Re: Determining Maximum Date from Array

Using the Time function works when running application locally.   See my code
below.   However when I publish to my server, the application freezes.  
What is the difference between running the code through Flash Builder and
running it from the server (Bin Release folder)?   And yes, the
convertSQLDate() function is working.

			public function getMin(ac:ArrayCollection):void
			{
						
				ac2 = ac.toArray();
				
				var mxm2:Date = new Date();
				var tnum:Number = mxm2.time;

				for (var i2:int=0; i2<ac.length; i2++) {
					
					if(ac2[i2].eventDate){
						var tempDate2:Number = convertSQLDate(ac2[i2].eventDate).time;
						trace("date is " + tempDate2);
					}
			         }
			} 





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Determining-Maximum-Date-from-Array-tp12434p12711.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Determining Maximum Date from Array

Posted by piotrz <pi...@gmail.com>.
How convertSQLDate looks like ? Can you paste full code.

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-tp12434p12713.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Determining Maximum Date from Array

Posted by core000 <ka...@gmail.com>.
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.