You can do you own calculations using the getTime() method, which returns
the number of milliseconds from a reference date.

 

But probably you should find a date utility library.  I have seen several.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Laurence MacNeill
Sent: Monday, May 18, 2009 10:11 PM
To: [email protected]
Subject: [flexcoders] Doing "math" with Date()

 






I have a list of events in a table, and I need to check and see if 
someone has selected two events that time-conflict with one 
another. How do I do "math" with the Date() function in Flex to see 
if two events occur at the same time or not? Are there other 
date-and-time functions in Flex?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



Reply via email to