In creating a date filterd report generation system, I was asked to add
an option for returning all data. Rather than reworking the backend I
just added a checkbox to the UI that says return all data. If that box
is checked then the properties return the following constants (randomely
created by yours truly as I couldn't determine from docs what was
valid).

public static const MIN_DATE:Date = new Date(1500,1,1);   
public static const MAX_DATE:Date = new Date(2999,12,31);

Here is the interesting part those dates actually return the following
data.
MIN_DATE.toString = Thu Feb 1 00:00:00 GMT-0500 1500
MAX_DATE.toString = Fri Jan 31 00:00:00 GMT-0500 3000

The first evaluation makes sense the second one is a bit more confusing.

I would expect if the date I assign is too big that the date returned
would be earlier not in the future.

Anyone know what the valid range is?

Thanks for your time,
Greg

Reply via email to