Использовать объект Date:
var time = Date.parse('02.02.1999'); document.writeln(time);
Дать: 917902800000