Articles in categories

Articles

jQuery get day, month and year

Get the current year, month and date with jQuery.

var year = (new Date).getFullYear();
var month = (new Date).getMonth() + 1; // month index starts from 0
var day = (new Date).getDate();