Related questions
How to subtract 4 months from today's date?
I need to declare two dates in "Ymd" format: $toDate and $fromDate.
$toDate represents today's date and $fromDate needs to be 4 months earlier than today.
$toDate = Date('Ymd');
$fromDate = ?
How do I create $fromDate?
Convert a date format in PHP
I am trying to convert a date from yyyy-mm-dd to dd-mm-yyyy (but not in SQL); however I don't know how the date function requires a timestamp, and I can't get a timestamp from this string.
How is this possible?
How do I use PHP to get the current year?
I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated.
How would I make the year update automatically with PHP 4 or PHP 5?