<?php if (date('w') == 2) { $last_tuesday = date('Y-m-d'); } else { $last_tuesday = date('Y-m-d', strtotime('last tuesday')); } echo $last_tuesday;
You have javascript disabled. You will not be able to edit any code.