Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Date & Calendar >> Day, Month, Todays Date, Year


Code Snippet </> Info


Snippet Name: Day, Month, Todays Date, Year

Description: Display the Day, Month, Todays Date, Year on your web page.


Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser


Example: View Code Demo

Note: Place the code snippet where you want the Day, Month, Todays Date, Year displayed.

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2016-01-25 02:30:39

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

<html> <head> <title>Day, Month, Todays Date, Year Javascript Code Snippet</title> </head> <body> Today is: <script> <!-- // Begin Day, Month, Date, Year // == This Script Free To Use Providing This Notice Remains == // == This Script Has Been Found In The http://snapbuilder.com Free Public Codes Library == // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == --> var now = new Date(); var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); function fourdigits(number) { return (number < 1000) ? number + 1900 : number; } today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear())) ; document.write(today); </script> </body> </html>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library