PHPDateTimestrtotime
mktime

strtotimeDateTime

date_create

Parses any English textual datetime description into a Unix timestamp.

Syntax

strtotime(string $datetime): int|false

Example

Enter values below to update the example in real time.

echo
strtotime
echo date("Y-m-d", strtotime("+7 days")); // 일주일 후
echo date("Y-m-d", strtotime("next monday")); // 다음 월요일