From 6a709219555af638e104dde754d7363093245586 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Sat, 4 Jan 2020 15:30:15 +0300 Subject: [PATCH] Update readMe.md --- readMe.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readMe.md b/readMe.md index 1c2ca5b..8cb6594 100644 --- a/readMe.md +++ b/readMe.md @@ -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