About · Site feedback
welcome  Products  Scripts  Downloads  Forum  Contact us  Support  Resellers 
 
Scripts
 
PHP
JavaScript
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("<i>");
	document.write(aDays[date.getDay()] + ",&nbsp;");
	document.write(aMonths[date.getMonth()] + " ");
	document.write(date.getDate() + ", ");
	if (date.getYear() > 1000)
		document.write(date.getYear());
	else
	{
		if (date.getYear() > 90 && date.getYear() < 100)
			document.write("19" + date.getYear());
		else
		{
			if (date.getYear() > 99)
				document.write(date.getYear() + 1900);
		}
	}
	document.writeln("&nbsp;</i>");
}
// -->
</script>
<script language="javascript">
// Example of use
TodayIs("Today's date is:");
</script>
Rate this page

Products

 

News

ID3 Editor 1.29.51 is now available. Added chapters and chapter table of contents. Fixed log file issues under Big Sur, Monterey and Ventura. Added a check for ANSI fields just in case Unicode is used.

QS Disclaimer 4.7.17 is now available. This version fixes an issue with Exchange 2019 and Windows 2019.

RTF to HTML converter 1.3.11 is now available. This version adds line spacing and raw output.

Disc Image Professional 2.3.1 is now available. This upgrade adds multi-user support and fixes a Vista mount 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-2024 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.