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