Is there a way to elegantly convert the value of this particular form field (input type="date") to a UNIX timestamp?
console.log($scope.jobDueDate)
gives me "Wed Jun 08 2016 00:00:00 GMT+0530 (IST)" and I really don't want to define a dictionary mapping months to numbers.