About · Site feedback
welcome  Products  Scripts  Downloads  Forum  Contact us  Support  Resellers 
Visual Basic
External downloads
If you use WSH or just VBScript / JScript, then the most important download to have is the Windows script host documentation (version 5.6).
Legal information
End User License Agreement
Non-commercial license
Disclaimer and legal notice

Date and time JavaScripts


Show the current date

For example:

<script language="JavaScript">
function TodayIs(sText)
	var aDays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday","Saturday");
	var aMonths = new Array("January", "February", "March", "April", "May", "June", "July",
		"August", "September", "October", "November", "December");
	var date = new Date();
	if (sText != "")
		document.write(sText + " ");
	document.write(aDays[date.getDay()] + ",&nbsp;");
	document.write(aMonths[date.getMonth()] + " ");
	document.write(date.getDate() + ", ");
	if (date.getYear() > 1000)
		if (date.getYear() > 90 && date.getYear() < 100)
			document.write("19" + date.getYear());
			if (date.getYear() > 99)
				document.write(date.getYear() + 1900);
// -->
<script language="javascript">
// Example of use
TodayIs("Today's date is:");
Rate this page




QS Disclaimer 4.6.17 is now available. This version adds a group based option to send a copy to the sender.

ID3 Editor 1.26.43 is now available. This version adds native x64 support which is required by 10.13.6 or newer.

Disc Image Professional 2.3.1 is now available. This upgrade adds multi-user support and fixes a Vista mount issue.

RTF to HTML converter 1.2.11 is now available. This version fixes a colour table issue.

MSAD Login 3.1.0 is now available. This version includes TLS and Kerberos support.

Archive SE 1.1.5 is now available. This upgrade adds support for Tar and BZip2.

back to top  

Facebook  Twitter  Google+ 

Copyright 1990-2019 Pa-software. All Rights Reserved.
Developer of Exchange Server e-mail disclaimers, compression, ISO CD/DVD disc image management, MP3 ID3 editing and Macintosh Active Directory integration.