PHP Date Tools
PHP strtotime Tester
Preview common relative date phrases used with PHP strtotime.
Preview
Parsed by browser: 2026-07-08T00:00:00.000Z
PHP example: strtotime('+1 week')
Use this tester to sanity-check relative date phrases before using them with PHP strtotime().
PHP example
$nextWeek = strtotime('+1 week');
$date = date('Y-m-d', $nextWeek);
Common mistakes
Relative date parsing depends on the base time and timezone. Make both explicit for repeatable results.
FAQ
Does this match PHP strtotime exactly?
No. It previews common phrases in JavaScript and shows the PHP expression to test server-side.
What phrases are supported?
The first version handles ISO dates, now, tomorrow, yesterday, and simple plus or minus day/week/month/year phrases.