From the course: JavaScript for Web Designers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Challenge: Add the date

Challenge: Add the date - JavaScript Tutorial

From the course: JavaScript for Web Designers

Start my 1-month free trial

Challenge: Add the date

(upbeat music) - [Instructor] For this challenge we're going to enhance the events calendar by showing the date as well as the time. It's much more useful when we're looking at the events to have the date and the time and show them both over here in our now box. I've hard coded it as January 30th here. Right click and inspect this so we can see. Here it is. The value of this is hard coded to January 30th. This is the part that we'll be updating. So we'll call this challenge date and time. You're going to add the date to that now box and format it like June 16th. Remember that some of these functions that we used to get parts, updates, and times, will be numbers and they won't necessarily be exactly in a format that we can use right away. So this is going to take some work to format it and spell it out like this. This is relatively easy to describe, but will certainly take at least a few minutes. Good luck.

Contents