AS3 get closest date to today
- by fana
Hi,
I have a XML file with a few concert dates. In my flash/AS3 file, I would like to show only the up coming event, relative to current date.
Like this:
Event 01: 30-05-2010
Event 02: 02-06-2010
Event 03: 05-06-2010
Today is 28-05-2010, so I need to list Event 01. On 01-06-2010 I need to list Event 02.
I have the basic AS3 code for listing the XML working, but I'm having trouble filtering the result.
Any ideas?
Thanks.