js convert epoch code example Example: convert date and time into epoch javascript Click to copyvar someDate = new Date(dateString); someDate = someDate.getTime();