I am scraping JSON data from a url. The time is military time and I was wondering if there is a way once I retrieve on the client side to convert it to standard time.
Here is the JSON:
[
  {
    SaturdayClose: "21:00",
    SaturdayOpen: "10:00",
    SundayClose: "12:00",
    SundayOpen: "18:00",
    WeekdayClose: "21:00",
    WeekdayOpen: "10:00"
  }
]
Here is my index.html:
    <p>
        Sun: ${ SundayOpen }a - ${ SundayClose }p Mon - Sat: ${ SaturdayOpen }a ${ SaturdayClose }p
    </p>
This returns this type of ugliness:
Sun: 18:00a - 12:00p Mon - Sat: 10:00a 21:00p
I would rather return this:
Sun: 6:00a - 12:p Mon - Sat: 10:00a - 9:00p
 
     
     
     
    