tengo el siguiente código JavaScript, pero desde hace algún tiempo la razón no está incluida minutos:JavaScript new Date()
var austDay = $("#<%= hiddenFieldTime.ClientID %>").val().split(" ");
var year = austDay[0];
var months = austDay[1];
var days = austDay[2];
var time = austDay[3];
var timeUntil = new Date(parseInt(year), parseInt(months),
parseInt(days), parseInt(time));
Cuando depuración mediante Firebug éstos son mi valor:
$("#ctl00_hiddenFieldTime").val() = "2011, 5, 6, 14:20:00"
year = "2011,"
months = "5,"
days = "6,"
time = "14:20:00"
timeUntil = Date {Mon Jun 06 2011 14:00:00 GMT-0400 (Eastern Daylight Time)}
Como puede ver, timeUntil se establece en lugar de 14:00:00
14:20:00
Dónde DateString debe estar en un formato reconocido por [el método de análisis sintáctico] (https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse) – mb21