0

How do i make the date show 12 hours instead of 24 hours in typescript using toLocaleString? This is not a duplicate question because i'm trying to get a 12 hour format instead of 24 hour format.

console.log(Date().toLocaleString());

output shows

Thu May 18 2017 23:56:49 GMT-0500 (Central Daylight Time)

0 Answers0