Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
echo date('Y-m-d') . PHP_EOL;
echo date('Y-m-d', strtotime('-1 month', strtotime('2023-05-31'));