Question about JavaScript syntax
Posted
by Sakti
on Stack Overflow
See other posts from Stack Overflow
or by Sakti
Published on 2010-06-08T07:18:36Z
Indexed on
2010/06/08
12:02 UTC
Read the original article
Hit count: 168
$(document).ready(function(){
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var month = new array("January","February","March","April","May","June","July","August","September","October","November","December");
var mon;
mon = month(m);
var today = m+"/"+d+"/"+y
$('#calendar').append('<div id="today">Today is'+' '+mon+'/'+d+'/'+y+'.');
});
© Stack Overflow or respective owner