Suppose i know that today's day is monday.
How do i use mktime()
in php to get unix timestamp for last friday and the friday before that??
suppose today's date is 17-01-2011 and its a monday. Then i want the timestamp for 14-01-2011 00:00:00 and 7-01-2011 00:00:00.
check out strtotime
http://php.net/manual/en/function.strtotime.php ..solves most of that kinda issues - otherwise you must strap the date yourself
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With