I am entering data to a graph, what happens when I bring the data and enter it in the Date.UTC function it adds me one more month giving me an erroneous date example:
Date.UTC(parseInt(val.year),parseInt(val.month),parseInt(val.day), parseInt(val.hour), parseInt(val.min));
Date.UTC(parseInt(2018),parseInt(10),parseInt(08), parseInt(10), parseInt(17));
It returns November 08, 2018 being October 8
he intentado hacer esto sin resultados:
new Date().toLocaleString('es-CL', { timeZone: 'America/Santiago' })
Thank you for your attention, I will be attentive to your replies.