PHP, Get tomorrows date from date

后端 未结 11 1802
不思量自难忘°
不思量自难忘° 2020-11-30 02:54

I have a PHP date in the form of 2013-01-22 and I want to get tomorrows date in the same format, so for example 2013-01-23.

How is this pos

11条回答
  •  有刺的猬
    2020-11-30 03:23

    By strange it can seem it works perfectly fine: date_create( '2016-02-01 + 1 day' );

    echo date_create( $your_date . ' + 1 day' )->format( 'Y-m-d' );

    Should do it

提交回复
热议问题