Is anyone good at using IsDaylightSavingTime? I grabbed clock code off of a website but I have to change it for daylight savings. I found IsDaylightSavingTime might be the solution but am struggling to get it to work. Here is the code:
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();
var zone = 6; // references your time zone
if (myzone.IsDaylightSavingTime(Now)) { zonea = zone - 1 ;
dst = " MDST";
}
else {
zonea = zone ; dst = " MST";
}
....theres more of course...
Thanks in advance.
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();
var zone = 6; // references your time zone
if (myzone.IsDaylightSavingTime(Now)) { zonea = zone - 1 ;
dst = " MDST";
}
else {
zonea = zone ; dst = " MST";
}
....theres more of course...
Thanks in advance.