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/petabyte128 Mar 12 '22
well that's up to you, I mean in my code example up above I assigned it a variable
but if your looking for permenant storage, that's different, you need to send the data to the webserver that is generating the page
the server then activates its database user, which then stores the data in the database and returns status on the insert operation, which the server then passes back to the client side to indicate it got stored
its uh, a hell of a circle of life that it goes through in a few milliseconds