0

I have a date string in this format:

Thu, Oct 13, 2022

Is there a short way to confirm it into date with format: 2022-10-13

Thanks for any ideas

Europeuser
  • 934
  • 1
  • 9
  • 32
  • 1
    See: [DateTimeImmutable::createFromFormat()](https://www.php.net/manual/en/datetimeimmutable.createfromformat.php). – KIKO Software Dec 03 '22 at 11:17
  • 1
    Does this answer your question? [Convert one date format into another in PHP](https://stackoverflow.com/questions/2167916/convert-one-date-format-into-another-in-php), $strYmd = date_create('Thu, Oct 13, 2022')->format('Y-m-d'); – jspit Dec 05 '22 at 13:04

0 Answers0