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);