How do I manipulate string in HTML?

  charts, django, html, javascript

The situation is that I’m getting the time series data from django’s sqlite. Originally, the date format is like ( Dec. 14. 2020. 2 p.m. ). And I converted this format to (2020, 12, 14, 2).
Using this code below

enter image description here

So right now, dataConverted1 = [new Date(2020, 12, 14, 2)]

TO simply put, is there any way that I can get an output exactly like dataConverted1 = [new Date(‘2020′, ’12’, ’14’, ‘2’)]

Thank you for your time,

Source: Ask Javascript Questions