Subtract 1 day with PHP

后端 未结 10 781
我在风中等你
我在风中等你 2020-11-28 06:52

I\'m trying to take a date object that\'s coming out of my Drupal CMS, subtract one day and print out both dates. Here\'s what I have

$date_raw = $messageno         


        
10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 07:23

    How to add 1 year to a date and then subtract 1 day from it in asp.net c#

    Convert.ToDateTime(txtDate.Value.Trim()).AddYears(1).AddDays(-1);
    

提交回复
热议问题