Finding the number of days between two dates

后端 未结 30 2462
心在旅途
心在旅途 2020-11-21 23:47

How to find number of days between two dates using PHP?

30条回答
  •  终归单人心
    2020-11-22 00:24

    If you have the times in seconds (I.E. unix time stamp) , then you can simply subtract the times and divide by 86400 (seconds per day)

提交回复
热议问题