Question Details

No question body available.

Tags

php date

Answers (2)

March 8, 2026 Score: 4 Rep: 20,110 Quality: Low Completeness: 0%

Unless it has a specific meaning, any token with at least 2 letters will be interpreted as a timezone.

March 8, 2026 Score: 4 Rep: 2,926 Quality: Low Completeness: 60%

'last Sunday in March '.$theYear is not valid syntax according to the docs: https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative (scroll down to the "Day-based Notations" section), there is no version with in.