-1

I'm trying to change May 22, 2022, to 22/05/22

I tried

Date('May 22, 2022').getDate()
David
  • 188,958
  • 33
  • 188
  • 262
user123
  • 1
  • 1
  • The OP might have a look into MDN's documentation of [Date.prototype.toLocaleString](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) and the [`Intl.DateTimeFormat`'s `datestyle` option](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#datestyle) ... `new Date('May 22, 2022').toLocaleString('fr', { dateStyle: "short" } );`. – Peter Seliger May 22 '22 at 14:47

0 Answers0