Traslate form date
Question

Hello

I need an expression to translate a date with "month day, year" from english to italian.


How can I do?

Senza titolo.png

Hi, 

You can try creating a JavaScript function to translate for the language you want. 

const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));

const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };

console.log(event.toLocaleDateString('It-it', options));

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.