DateInterval::createFromDateString

PHP 5 >= 5.3.0, PHP 7, PHP 8
DateInterval::createFromDateString - Sets up a DateInterval from the relative parts of the string
Manual
Code Examples

Example #1 Parsing valid date intervals

PHP Version:


Function DateInterval::createFromDateString:

Date and Time Functions

Most used PHP functions