date display

Date Display

You can use this snippet to display the current date in this format:¬†Friday, June 11, 2010. Just paste the following code where you want the date to show up on your page: <SCRIPT LANGUAGE=”JavaScript”> 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)

Read more
1 2 3