AS3 get closest date to today
Posted
by fana
on Stack Overflow
See other posts from Stack Overflow
or by fana
Published on 2010-05-28T09:55:58Z
Indexed on
2010/05/28
10:32 UTC
Read the original article
Hit count: 169
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.
© Stack Overflow or respective owner