Date difference in Javascript (ignoring time of day)

前端 未结 15 2350
无人共我
无人共我 2020-11-27 15:35

I\'m writing an equipment rental application where clients are charged a fee for renting equipment based on the duration (in days) of the rental. So, basically, (daily fee *

15条回答
  •  失恋的感觉
    2020-11-27 16:07

    To get the full days the date interval over daylight saving time changes the floor(days) must be replaced by round. Otherwise it's a very useful function.

提交回复
热议问题