When I run the code below, I get a date of May 1st, 2008. What am I missing here? Shouldn't this give me March 31st, 2008.
<?xml version="1.0"?> <!-- Simple example to demonstrate NumberFormatter. --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initDate()"> <mx:Script> <![CDATA[ private var year:Number = 2008; private var month:Number = 3; private var date:Number = 31; private var wholeDate:Date = new Date(year, month, date); private function initDate():void{ myText.text = wholeDate.toString(); } ]]> </mx:Script> <mx:Text width="466" id="myText"/> </mx:Application>

