Copyright © 2014 by tutorialspoint
These functions alter the timestamp given in the passed object.
The above two functions are equivalent and any of the functions can be used as shown below in the example.
Returns NULL on success or FALSE on failure.
Following is the usage of this function:
$date = new DateTime("2006-12-12");
This will produce following result: