Link to home
Start Free TrialLog in
Avatar of isnoend2001
isnoend2001Flag for United States of America

asked on

trying to determine why this scripts not working

http://roofgenius.com/test.htm
contents of JavaScriptJS/date.js:

var myDate = "09/10/2013"
document.write("Copyright © 2002-2013 Rooofgenius.com All rights reserved.")<br />
document.write("This page last updated: " + myDate);
what is wrong ?
SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The Date is ok the way you have it.  It's a string so doesn't need to be converted.

Here is a demo of it working: http://jsbin.com/OHAjOKE/1/edit
Avatar of isnoend2001

ASKER

Thanks. That fixed it