Help me solve this issue with my script:
var date = new Date("19871104071535".replace(
/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/,
'$4:$5:$6 $2/$3/$1'
));
alert(date);
The script runs smoothly in Firefox, IE, and Chrome, but Safari keeps throwing an "Invalid Date" error. Any suggestions on how to fix it?