moment(‘some string’).isValid()but that still throws a deprecation warning stack trace. Is there some way/function I could use to simply test if a string is parseable to a date with moment?
moment.localeData()is supposed to return a Locale, according to moment.d.ts
Hi there! I am the creator of the moment plugin "moment-weekdaysin" (https://github.com/kodie/moment-weekdaysin) and back in July I tried to submit it to the moment website however @maggiepint had a few concerns and denied the request suggesting that I get on here to get some advice. moment/momentjs.com#439
So I was just wondering what you guys recommend I change in my plugin. Thank you!
I have a weird issue
I have a string ISO date, lets call it startTime
I also have a duration string, in the format of 'HH:mm:ss'
I need to calculate the endTime as startTime + duration
I am trying to do this like this:
const endTime = moment(startTime).add(moment.duration(duration))