From 992e61390e528e5e684e8789122ec0b05aa0a78f Mon Sep 17 00:00:00 2001 From: LSvekis Date: Thu, 1 Jul 2021 16:38:58 -0400 Subject: [PATCH] Create Month of Date --- Chapter 11/Month of Date | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Chapter 11/Month of Date diff --git a/Chapter 11/Month of Date b/Chapter 11/Month of Date new file mode 100644 index 0000000..50ed2da --- /dev/null +++ b/Chapter 11/Month of Date @@ -0,0 +1,9 @@ +let today = new Date(); +let future = new Date(2025, 5, 15); +console.log(future); +const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; +let day = future.getDate(); +let month = future.getMonth(); +let year = future.getFullYear(); +let myDate = `${months[month]} ${day} ${year}`; +console.log(myDate);