Update readMe.md

pull/14/head
Patrick Njuguna 6 years ago committed by GitHub
parent 39d469e0a9
commit 6a70921955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1623,11 +1623,11 @@ console.log(now.getMonth()) // 0, because the month is January, month(0-11)
### Getting date
Let's extract or get the date of the month from a time object.
Let's extract or get the day of the month from a time object.
```js
const now = new Date ()
console.log(now.getMonth()) // 0, because the month is January, month(0-11)
console.log(now.getDate()) // 4, because the day of the month is 4th, day(0-31)
```
### Getting hours

Loading…
Cancel
Save