Parsing Dates in Free Format in PHP
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.
Get the date of the next Monday in the format month.day.year.
Get the date of the first day of the next month in the format month.day.year.
Given the date '2023-12-25'
.
Find out what day of the week it was on this date.