Use the new() keyword
The format() method uses the same format flags as procedural date()
Headline format characters
Can use DD-MM-YYYY
Can use MM/DD/YYYY
Can use YYYY-MM-DD
Reserved words for creating relative dates
Retrieve as UNIX time stamp. Check whether 32 or 64 installation with PHP_INT_SIZE. 64-bit version of PHP echos 8, 32-bit version of PHP echos 4
Change the DateTime object.
Change the DateTime object.
Take care when running methods as they return the object.