79336662

Date: 2025-01-07 16:26:33
Score: 1.5
Natty:
Report link

Why not just doing:

SELECT 
date_trunc('week', EXTRACT(YEAR FROM CURRENT_DATE) || '-01-04')::date 
AS first_monday_of_iso_year;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: Luis Chaves Rodriguez