0

I have got a date and I like to convert it 'toLocaleDateString' but in the language I like. I am trying to do it, but it always give me the format of the user language(spanish).

 var date = new Date();//or any date
 console.log("date: " + date.toLocaleDateString("en-GB");

Thanks!

Za7pi
  • 1,338
  • 7
  • 22
  • 33

0 Answers0