Home Tutorial Php Phpdate date_interval_create_from_date_string

 
 

date_interval_create_from_date_string
Posted on: August 26, 2009 at 12:00 AM
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.

Related Tags for date_interval_create_from_date_string:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.