How do I use the date function to get yesterday?
echo date('r', strtotime('-1 day'));
alternatively you can use [man]mktime[/man] to construct a timestamp with given hour, minute, second, month, day, year parameters
That almost gave me what I wanted. However I am trying to change the timestamp to 2006-01-30 format The above example gave me JAN instead of 01....is there a parameter to send to make it all numbers? or what would you suggest
Hi!
echo strftime('%Y-%m-%d', strtotime('-1 day'));
Looking good now. thanks 🙂