結果 : check if two dates are the same javascript