I have these variables: (not literally, but this is what I obtain from a datepicker)
var StartMonth = "April";
var StartDate = "21";
var CurrentStartTime = "2";
var CurrentEndTime = "5";
var Startampm = "PM"; //corresponds to the CurrentStartTime
var Endampm = "PM"; //corresponds to the CurrentEndTime
I need to convert these variables to a single variable, milliseconds since 1970.
Use the Date class.