The following code gives me what I want for the PC, which is: "11/01/2001"
But on the MAC it returns: "Thursday,"
currentDate = new Date()
document.write(currentDate.toLocaleString().substring(0,10));
Anybody know how to make it return "11/01/2001" for both operating systems.
IE is the browser in both scenarios.
But on the MAC it returns: "Thursday,"
currentDate = new Date()
document.write(currentDate.toLocaleString().substring(0,10));
Anybody know how to make it return "11/01/2001" for both operating systems.
IE is the browser in both scenarios.