Get the date of one week from today with PHP -


how date, 1 week today, in following format: yyyy-mm-dd ?

thanks.

try:

date("y-m-d", strtotime("+1 week")); 

this output:

2015-12-31 

if today 2015-12-24


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -