how to get date of yesterday using php? December 18, 2022 by Tarik there you go date('d.m.Y',strtotime("-1 days")); this will work also if month change