Thu, 2004-02-05 21:46
Head of my Page
<SCRIPT LANGUAGE="JavaScript"><!-- var date = new Date(); var Month = new Array ("Janruary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") ; var Day = new Array ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday") ; //--></SCRIPT>
HTML
<SCRIPT LANGUAGE="JavaScript">document.write(date.Month+date.Day)</SCRIPT>
[/code]
Thu, 2004-02-05 21:57
#1
JavaScript - Writing the Date using an Array
Hi rmcivo1,
try something like<SCRIPT LANGUAGE="JavaScript">document.write(Month[date.getMonth()] +" "+Day[date.getDay()])</SCRIPT>
Hope that helps
Fri, 2004-02-06 08:20
#2
Thank You
Thank you for that, I thought that I got most of the Script wrong. Thank you.
What would you suggest I should learn after the Clock in Javascript
Thank You
Rees
Fri, 2004-02-06 10:44
#3
JavaScript - Writing the Date using an Array
Hi rmcivo1,
There's so much to learn.
Hers's some suggestions.
- String manipulation
Regular expressions
Math
Functions
Hope that helps[/]
Fri, 2004-02-06 17:08
#4
JavaScript - Writing the Date using an Array
Hope that's not your actual list of months, Rees... where'd February go?
Fri, 2004-02-06 17:21
#5
Yeah I did Notice
I did Notice that the Months were Wrong, Thank you for having a Look in that much great detail.
Thank you Tony Thats has made my webpage, lok abit more Interesting
Best Regards
Rees