If I have given date string MM-DD-YYYY and time string HH:mm A or H:m a, how do I build a moment object?
MM-DD-YYYY
HH:mm A
H:m a
I tried
Try using the format (second) parameter moment("12-25-1995", "MM-DD-YYYY");
moment("12-25-1995", "MM-DD-YYYY");
For details see http://momentjs.com/docs/#/parsing/string-format/