Posts Tagged ‘month’

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

July 7, 2010

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 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