I want to display current time, date and date using typescript and HTML
The code I am using for javascript and HTML to print is:
const time1 = new Date(); console.log(time1.toLocaleString())
{{time1}}//in HTML
The output I get: Sun Nov 27 2022 20:26:33 GMT-0500 (Eastern Standard Time)
The output I want: Sun Nov 27 2022 20:26
I don't not want seconds or time zone