Development JavaScript DHTML



GMT Calculator

function calcGMT(form) {
    var date = new Date(form.year.value, form.month.value, form.date.value, 
                         form.hour.value, form.minute.value, form.second.value);
    form.output.value = date.toUTCString();
}




Enter a local date/time

Year:

Month (0-11):

Date (1-31):

Hour (0-23):

Minute (0-59):

Second (0-59):



GMT: