Flex: Date.month is zero-based, Date.date is one-based!!

This little issue caught me out a bit when debugging an app: the month property of a Flex Date object is zero-based, whereas the Date.date property is an integer from 1 to 31. Crazy or what!

For 07/07/2010 (07/July/2010) at 09:33 GMT, the date object is shown below:

Flex Date for 07/July/2010 09:33 GMT

Advertisements

Tags: , , ,

2 Responses to “Flex: Date.month is zero-based, Date.date is one-based!!”

  1. Daniel Z Says:

    Thank you, I missed that as well

  2. property in bath Says:

    I enjoy reading through an article that will make men and women
    think. Also, many thanks for allowing me to comment!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: