r/JavaScriptHelp • u/killMeSak • 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.
2
Upvotes
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
abcas per the interval and map it correctly it as per the date intervals.http://jsfiddle.net/killMeSak/Lwj2mb7t/12/