mktime in js
snippet in javascript

mktime in js

user2896

var seconds = new Date(year, month, day, hours, minutes, seconds, 0).getTime() / 1000;