How do I get next month date from today's date and insert it in my database?

后端 未结 13 565
我寻月下人不归
我寻月下人不归 2021-02-01 15:07

I have two columns in my db: start_date and end_date, which are both DATE types. My code is updating the dates as follows:



        
相关标签:
13条回答
  • 2021-02-01 15:32

    01-Feb-2014

    $date = mktime( 0, 0, 0, 2, 1, 2014 );
    
    echo strftime( '%d %B %Y', strtotime( '+1 month', $date ) );
    
    0 讨论(0)
提交回复
热议问题