Format simple date

How can I formate this date from an Input type Date, ‘2022-03-26’ to “Sat, 26 Mar” or “Sat, 26 Mar 2022”. This last is also a “natural” date from JavaScript. But there is a native way to change a format to other?

A link without any kind of explanation is not an answer.

Did you have a specific question about how to use the method? It has examples posted, I’m sure. What have you tried so far?

If you just want the answer then here’s the set of options that I got to work:

new Intl.DateTimeFormat('en-GB', {
  weekday: 'short',
  month: 'short',
  day: 'numeric'
}).format(new Date()); // Sun, 27 Mar