Calculate number of days between two given dates

后端 未结 3 1485
忘了有多久
忘了有多久 2021-01-25 16:42

Can anyone correct the error in my script to calculate the number of days between 2 dates. The dates have been input through a form, the variable info is as followed:

3条回答
  •  执笔经年
    2021-01-25 17:38

    The mktime documentation specifies a number for the month, so you'd need to convert 'June' to '6'.

提交回复
热议问题