Parsing Dates in Free Format in PHP

strtotime
Задание 1

Given a date in the format 2025-12-31. Using the function strtotime and the function date, convert it to the format 31-12-2025.

Задание 2

Get the date of the next Monday in the format month.day.year.

Задание 3

Get the date of the first day of the next month in the format month.day.year.

Задание 4

Given the date '2023-12-25'. Find out what day of the week it was on this date.