I'm working with jQuery time entry plugin
http://keith-wood.name/timeentry.html
This plugin is returning data in "12:23PM" javascript typeof "string", and now using momentjs I want to convert it into time and get difference between current time & user selected time.
var a = new Date($("#totime").val())
I'm getting error Invalid Date
.