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