date_interval_create_from_date_string


 

date_interval_create_from_date_string

Here, you will learn the example of date_interval_create_from_date_string that is also known as DateInterval::createFromDateString.

Here, you will learn the example of date_interval_create_from_date_string that is also known as DateInterval::createFromDateString.

date_interval_create_from_date_string

date_interval_create_from_date_string alias DateInterval::createFromDateString is used for setting up a DateInterval from the relative parts of the string. It uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string. It returns new DateInterval instance if success.

Description about Set Up Dateinterval From Date String PHP

public static DateInterval DateInterval::createFromDateString ( string $time )

Parameters of date_interval_create_from_date_string() PHP

time - Date with relative parts.

Ads