win1.attachURL("resultforms/BusinessUnitDrillDownWin.php?pkLocationID=" + pkLocationID + "&FromDate="+fromDate+"&ToDate="+toDate);
the toDate and fromDate are set far up the page and work perfectly. The toDate and fromDate also pass in the URL correctly as I have checked using firebug.
The problem starts when on the BusinessUnitDrillDownWin.p
hp page if I echo out $_GET['toDate'] or $_GET['fromDate'] on this page the value is coming out wrong, for example if the toDate is set to 20-12-2013 and I echo this out on the BusinessUnitDrillDownWin.p
hp page it will display as -2005
I have attached a screen shot of the URL for BusinessUnitDrillDownWin page to show the date in on the URL and is the correct date and format.
Any help would be much appreciated