So instead of manually doing
weekArray = ["Monday", "Tuesday", "Wednesday" ....]
I'm looking for a way to do something like
weekArray = moment.js(week)
The same idea for times during the day especially, so I could potentially use different formats.
For weekdays, you could use moment's weekdays method
weekArray = moment.weekdays()
This recipe can be found in it's original form on Stack Over Flow.