79659059

Date: 2025-06-09 14:59:13
Score: 0.5
Natty:
Report link

This is the solution using PHP date-time objects:

<?php
$today = new datetime();
$thursday = $today->modify("last Thursday");

If necessary the date can be formatted:

$thursday->format('Y-m-d');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ron Piggott