Display Date (Format : January 28, 2010) Using JavaScript

Chikul
Posted by Chikul under JavaScript category on | Views : 3287
    <script language="Javascript" type="text/javascript">
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getFullYear()

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");

document.write(months[month]+" "+today+", "+year)

</script>

Comments or Responses

Login to post response