Date – getDate()
date.getDate()
getDate()
returns the day of month, an integer from 1 to 31, of this date
object
Example
1. get the day of month for the current date
let date = new Date();
console.log(date);
console.log(date.getDate());
date.getDate()
getDate()
returns the day of month, an integer from 1 to 31, of this date
object
1. get the day of month for the current date
let date = new Date();
console.log(date);
console.log(date.getDate());
Copyright @2022