»
EnglishFrenchVietnamese

Print - Basic Date Display 2 - JavaScriptBank.com

Full version: jsB@nk » Time » Clock » Basic Date Display 2
URL: https://www.javascriptbank.com/basic-date-display-2.html

Basic Date Display 2 © JavaScriptBank.comThis JavaScript will display the month, day, and year, without the day of the week. Clean and simple. The display can be changed with CSS.

Full version: jsB@nk » Time » Clock » Basic Date Display 2
URL: https://www.javascriptbank.com/basic-date-display-2.html



JavaScript
<script language="javascript">// Created by: Lee Underwood :: http://javascript.internet.com/function displayDate() {  var now = new Date();  var today = now.getDate();  var month = now.getMonth();    var monthName = new Array(12)      monthName[0]="January ";      monthName[1]="February ";      monthName[2]="March ";      monthName[3]="April ";      monthName[4]="May ";      monthName[5]="June ";      monthName[6]="July ";      monthName[7]="August ";      monthName[8]="September ";      monthName[9]="October ";      monthName[10]="November ";      monthName[11]="December ";  var year = now.getFullYear();  document.write(monthName[month]+today+ ", "+year);}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<script type="text/javascript"><!--  displayDate();//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->