P
P
Pavel2019-05-30 16:05:31
PHP
Pavel, 2019-05-30 16:05:31

how to subtract days from date php?

there is such a thing in it 2019-05-30 how to get 2019-05-25 for example?
$thisDate = date('Y-m-d')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2019-05-30
@mrusklon

date('Y-m-d', strtotime($thisDate. " - 5 day"));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question