Learn the Date Object by Building a Date Formatter - Step 28

Tell us what’s happening:

Hey everyone,
I’m do not see any more errors. I formated it several times and this message keeps coming up:

Your answer should follow this format: mm-dd-yyyy h Hours m Minutes. Replace mm, dd, yyyy, h, and m with the month, day, year, hours, and minutes variables you created earlier.

Please help :slight_smile:

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region


  switch (dateOptionsSelectElement.value) {
    case "yyyy-mm-dd":
      currentDateParagraph.textContent = formattedDate
        .split("-")
        .reverse()
        .join("-");
      break;
    case "mm-dd-yyyy-h-mm":
      currentDateParagraph.textContent = `${month}-${day}-${year} h ${hours} m ${minutes}`;
      break;
  }

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0

Challenge Information:

Learn the Date Object by Building a Date Formatter - Step 28

Hi there, the request was for this output format:
mm-dd-yyyy h Hours m Minutes .

Where h is replaced with a number and m is replaced with a number. You are not doing that.

1 Like