Now that the dateConverter has been defined, clean up the implementation of date-display by using the dateConverter.

Use the converter

Permalink to "Use the converter"

date-display.

Permalink to "date-display."

Clean up references to dateStr

Permalink to "Clean up references to dateStr"

date-display.

Permalink to "date-display."

index.html

Permalink to "index.html"

Now, the date attribute can be properly converted to a JavaScript Date object!