Use date_interval_create_from_date_string() to Create an Interval from a String

Use date_interval_create_from_date_string() to Create an Interval from a String

The date_interval_create_from_date_string() function creates a new date interval object from a string. This is useful for defining date intervals.

← Back to Tips List