php8.5
Home/ Manual/ reference / datetime/ The DateException class

The DateException class

Parent class of Date/Time exceptions, for issues that come to light due to user input, or free form text arguments that need to be parsed.

Intro

Parent class of Date/Time exceptions, for issues that come to light due to user input, or free form text arguments that need to be parsed.

The following child exceptions are thrown by the extension:

  • DateInvalidOperationException
  • DateInvalidTimezoneException
  • DateMalformedIntervalStringException
  • DateMalformedPeriodStringException
  • DateMalformedStringException

Class synopsis

extends Exception { }

Source: reference/datetime/dateexception.xml · from the official PHP manual (php/doc-en)