# XML Number Variables?

**URL:** <https://forum.kirupa.com/t/xml-number-variables/189678>\
**Category:** flash\
**Created:** [June 5, 2006, 9:12am UTC](https://forum.kirupa.com/t/xml-number-variables/189678 "2006-06-05T09:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewi\_p](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lewi\_p](https://forum.kirupa.com/u/lewi_p)\
**Post date:** [June 5, 2006, 9:12am UTC](https://forum.kirupa.com/t/xml-number-variables/189678/1 "2006-06-05T09:12:52Z")

</div>

Hi,

I have an XML file i’m importing into Flash then creating a variable value called ‘xmlMonth’…if I trace this value I get ‘5’ so I know its getting imported ok. The problem I’m having is when I try to create a new Date with this value, my bits of code look like this…

```auto
_root.xmlMonth = xmlNode.firstChild.nextSibling.nextSibling.firstChild;

xmlDate = new Date(2006, xmlMonth, 10, 12, 00, 00);

```

However this doesn’t work…it resets the month back to Jan. Any Ideas why this is or how I can fix it?

Thanks
