Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying current month and year at the top of the page

Status
Not open for further replies.

photoxprt1868

Programmer
Jul 22, 2005
76
0
0
US
Hello,

I was woindering what the syntax would be to display just the current month and year using JS. (e.g., June, 2006)

Thank you very much
 
This works for the UK environment. Don't know about any other locales
Code:
var today = new Date ();
WScript.echo (today.toLocaleDateString ().substr(3));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top