Question: 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.

Answer: 
You can use `getTime()` method of Date object to get milliseconds since epoch.

```
var date = new Date();
var dt = date.getTime();

```
Use the [Date](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) class.