Closed DevGareth closed 5 years ago
If using week as the unit and enddate is early in a month e.g. day is 6 or less.
Remaining nulls are calculated by maxUnit - lastUnit.
lastUnit is the last photo inn data's time value e.g. 21 days or 10 hours.
maxUnit is the unit of the enddate so if enddate was 06.04.2019 it would be 6 days.
Will solve soon with: https://www.quora.com/How-do-I-get-the-number-of-days-between-two-dates-in-Javascript
Solved by adding getDateDifference.
If using week as the unit and enddate is early in a month e.g. day is 6 or less.
Remaining nulls are calculated by maxUnit - lastUnit.
lastUnit is the last photo inn data's time value e.g. 21 days or 10 hours.
maxUnit is the unit of the enddate so if enddate was 06.04.2019 it would be 6 days.
Will solve soon with: https://www.quora.com/How-do-I-get-the-number-of-days-between-two-dates-in-Javascript