var difftime=new Date()-new Date(2010,3,1,3,42,7); var serverTime = new Date(2010,3,1,3,42,7);