Am i doing it right ? - jquery ques ...

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 7:22 UTC
Read the original article Hit count: 195

Filed under:
|
$(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

Related posts about jQuery

Related posts about js