Share on Google+Share on Google+


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 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.


Posted on: August 26, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.