--- title: "equals Method (DateTimeOffset) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: d9883c25-5c43-4633-874e-4b490e4bccad author: David-Engel ms.author: v-daenge --- # equals Method (DateTimeOffset) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Compares this **DateTimeOffset** object to another **Object**. ## Syntax ``` public boolean equals(Object o) ``` #### Parameters *o* The object you want compare to the current instance. ## Return Value Returns true if this **DateTimeOffset** object represents the same point in time at the same offset from GMT as another **DateTimeOffset**. ## See Also [DateTimeOffset Class](../../../connect/jdbc/reference/datetimeoffset-class.md) [DateTimeOffset Members](../../../connect/jdbc/reference/datetimeoffset-members.md)