var bDate1:Date = new Date(2011,10,2,0,0,01); //When you pass the date use bDate1.time; //Notice the 01 for the seconds that will take care of the REST date time issue.
Zahid,
Try this:var bDate1:Date = new Date(2011,10,2,0,0,01); //When you pass the date use bDate1.time; //Notice the 01 for the seconds that will take care of the REST date time issue.