When dealing with a date variable obtained from an external source, such as:
var date = '28/04/2017';
var time = '19:28';
Is it possible to format these variables to various formats using moment.js or without it?
For instance, formats like 04.28 19:28, 2017.04.28 19:28, or even Today at 19:28 (using moment().calendar();)
I attempted
moment(date+' '+time).format('MM.DD.YYYY');
However, I encountered an "Invalid date" error.