navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Javascript to display month/year

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Javascript to display month/year
Page: [1]
 
LB

 

Posts: 5551
From: Montana USA
Status: offline

 
Javascript to display month/year - 3/30/2001 17:31:00   
I'm looking through the normal resources, but what I need is a javascript that will display just the month and year:

March 20001

Does anyone have one handy?

Linda

Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: Javascript to display month/year - 3/30/2001 19:41:00   
I don't think will work for your example of 20001{/b}

But:
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year<100) year="19" + time.getYear();
else year=time.getYear();
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->
</SCRIPT>
</CENTER>
<!-- END OF SCRIPT -->

------------------
Gil Harvey
The Host Factory
Resellers are our speciality
"How Can I Miss You If You Won't Go Away? "


(in reply to LB)
LB

 

Posts: 5551
From: Montana USA
Status: offline

 
RE: Javascript to display month/year - 3/30/2001 20:12:00   
lol. Somehow I don't think I'll need it to work until 20001... this should do it. Thanks, Gil.

Linda


(in reply to LB)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Javascript to display month/year
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts