D
D
dev_guf2015-07-09 17:50:40
PHP
dev_guf, 2015-07-09 17:50:40

Get next saturday date in php?

Tell me how to get the date of the next Saturday and the time 9:00 in php (for example)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2015-07-09
@dev_guf

php > var_dump(date('H:i d.m.Y', strtotime('next saturday 09:00')));
string(16) "09:00 11.07.2015"

P
pibiv, 2015-07-09
@pibiv

$date =  strtotime("next Saturday");
echo $date;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question