first let me show you my code:
$lastWeek = date('m-d-Y', strtotime('-1 week'));
How to get a timestamp from last week. Is there any chance that I will get a timestamp from last Saturday?
I hope you know what I mean.
Many thanks.
what happened with
$last_sat = strtotime("last Saturday");
EDIT
The time should be set to '00: 00: 00 ';
echo date('d-M-Y H:i:s',$last_sat);
gives
29-Jan-2011 00:00:00
Source: https://habr.com/ru/post/1789949/More articles:Is there a way to fix an Oracle query in a shared pool - performance2 layouts 1 activity android - androidDrools: insertLogical and retract - javaПроблема с отправкой файла python urllib2 - pythonMDX Filter Request - equalsIP Banning - the most effective way? - phpIs it possible to “re-clean” iOS Date Picker? - user-interfaceComplex merge script in Git - gitКак отображать Red Squiggly Lines в CRichEditCtrl в MFC - mfcHow to get binary data from boost :: asio :: streambuf - boostAll Articles