I have a format of “Jan. 27, 2015 at 8:17 AM” that I need to display using moment.js. I’m using the format moment.format('MMM. D, YYYY at h:mm A z');...
Moment version: 2.0.0 After reading the docs, I thought this would be straight-forward (Chrome console): var timestring1 = "2013-05-09T00:00:00Z"; var timestring2 = "2013-05-09T02:00:00Z"; var startdate = moment(timestring1); var expected_enddate...
I’m trying to convert UTC time to the local time. I’ve been following this example from this link: http://jsfiddle.net/FLhpq/4/light/. I can’t seem to get the right local output. For...
I’m using Moment.js to parse and format dates in my web app. As part of a JSON object, my backend server sends dates as a number of milliseconds from...
i have a start date string “20.03.2014” and i want to add 5 days to this with moment.js but i don’t get the new date “25.03.2014” in the alert...
How do I get the first and last day and time of the current month in the following format in moment.js: 2016-09-01 00:00 I can get the current date...
I’m using moment.js to do most of my date logic in a helper file for my React components but I haven’t been able to figure out how to mock...
I’m getting a warning that a value provided to moment is not in a recognized ISO format. I changed my variable today with the moment function and still it...
Folks, I am trying to understand the MomentJS API. What is the appropriate way to get the current time on the machine? var CurrentDate = moment(); vs var CurrentDate...
Is there any way I can use the moment.js format method on duration objects? I can’t find it anywhere in the docs and it doesn’t seen to be an...

