>>> Programming >> PHP > How to find the Date of a Day In last Week with PHP Date (This page has been seen 1174 times)
How to find the Date of a Day In last Week with PHP Date
This is an example on how to find the date of a day in last week. Lets say its
today, and you wanna find the date of last then you could use strtotime with
date like this.
The Code:
The Code:
$today=date("l");
echo "Today is ". $today
echo "Last ".$today."'s date is ".date("m/d/Y",strtotime('last '.$today));
Like (3)
Dislike (2)
Keywords for this article:
DATE || WEEK || STRTOTIME
Advertisement by Google
Comment:
Code Language:
Code:
Here you can paste a code example. It will then be processed by SyntaxHighlighter and formatted for easier readability.
Please remember to select the correct Code Language in the select above so the SyntaxHighlighter can highlight the code properly.
Code:
Please enter the code you see above
What is 6 + 8 =