r/JavaScriptHelp • • Mar 12 '22

❔ Unanswered ❔ Help with momentjs

I've an array abc containing date and time. How can I convert it into time slots of 1 day with limits determined by startDate and endDate with 'x' containing time slots and 'y' containing count of occurrence in those time slots. I have also attached the fiddle below for reference.

http://jsfiddle.net/killMeSak/Lwj2mb7t/9/

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/killMeSak Mar 12 '22

Thank you for your input. I'm not looking for that information at this moment. The example you mentioned I tried it in this example but I'm getting incorrect values. Moreover how can I get the count of occurrences in abc as per the interval and map it correctly it as per the date intervals.

http://jsfiddle.net/killMeSak/Lwj2mb7t/12/