I've been trying to use vue-moment for date formatting in my application, but I'm having trouble getting it to recognize the input format that moment.js should parse. The date format returned by my API is like this:
2019-01-01 24:00:00 GMT
Here's how I am setting the (input) format and outputting it using a v-for
:
{{ [ date, "YYYY-MM-DD HH:mm:ss z" ] | moment("subtract", "5 hours", "YYYY-MM-DD hh:mm:ss A") }}
However, I keep encountering this error message:
Could not build a valid `moment` object from input.