You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function day_of_the_month(d)
|
|
{
|
|
return (d.getDate() < 10 ? '0' : '') + d.getDate();
|
|
}
|
|
|
|
d= new Date();
|
|
console.log(day_of_the_month(d));
|
|
|
|
d= new Date(2015, 10, 1);
|
|
console.log(day_of_the_month(d));
|