[ https://issues.apache.org/jira/browse/FLEX-33363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559739#comment-13559739 ]
Maurice Amsellem commented on FLEX-33363: ----------------------------------------- This is not a bug, Date.getMonth() returns 0..11 and not 1..12. It's clearly explained in Adobe ActionScript 3 documentation : http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html#getMonth%28%29 getMonth():Number Returns the month (0 for January, 1 for February, and so on) portion of this Date according to local time. Please make sure to read the documentation before filing bugs, especially major ones. > Issue with Date > --------------- > > Key: FLEX-33363 > URL: https://issues.apache.org/jira/browse/FLEX-33363 > Project: Apache Flex > Issue Type: Bug > Components: Spark: DateField > Affects Versions: Adobe Flex SDK 4.0 (Release) > Reporter: hareesh > Labels: features > Fix For: Adobe Flex SDK 4.0 (Release) > > Original Estimate: 24h > Remaining Estimate: 24h > > Whlle i am trying to get getMonth() from date it's returning 0-january , > 1-febrauary and so on insteead of 1 -12. > i found some information about it i.e : As per my knowledge you are mainting > a array with list of months (January to december). when i'm using > date.getMonth() i'm getting 0 for january that means you are returning index > of that array. I tried to open Date file but , i didn't get. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira