I have an input field which stores data in format
28 Oct 2016 10:50 pm
I need to send the values to server in different format, I just need to send day of week and time in 22:50:00
format.
Output required:
var dayOfWeek = 6 // (or friday);
var time = 22:50:00;
I am struggling to do it in a simple and neat way. Any help would be appreciated.