Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date

const currentDate = new Date();
const currentMonth = currentDate.getMonth() + 1;
const currentDay = currentDate.getDate();
const currentYear = currentDate.getFullYear();
Source by discuss.codecademy.com #
 
PREVIOUS NEXT
Tagged: #javascript #date
ADD COMMENT
Topic
Name
9+2 =