Originally Posted by Nirbhay
Thanx for the reply ...
I am not getting how r u goining to call the function f and pass any value to this function ...
you dont need to change or call anything really, i set it up so you could re-arrange the order of whole lines.
you just use it right before you need it, the above code builds it in to all dates.
the date syntax won't parse, but it's close:
var now = new Date("9/25/2006 06:20:16");
var hrs = now.getHours();
hrs += 4;
this might be a US-format only, not sure.
browsers parse the Date.toLocale(""|Time|Date)String() methods' formats, which vary by regional settings.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4