I have a web page with three dropdowns for day, month and year. If I use the JavaScript Date constructor that takes numbers, then I get a Date obje
Date
getTimeZoneOffset is minus for UTC + z.
var d = new Date(xiYear, xiMonth, xiDate); if(d.getTimezoneOffset() > 0){ d.setTime( d.getTime() + d.getTimezoneOffset()*60*1000 ); }