DateTimeUtility.AreSameSecond method (1 of 2)

Returns true if the two date times are equal when rounded down to the second.

public static bool AreSameSecond(DateTime left, DateTime right)

Remarks

Use this method to compare date times that are serialized with a format that doesn’t preserve sub-seconds.

See Also


DateTimeUtility.AreSameSecond method (2 of 2)

Returns true if the two date times are equal when rounded down to the second.

public static bool AreSameSecond(DateTime? left, DateTime? right)

Remarks

Use this method to compare date times that are serialized with a format that doesn’t preserve sub-seconds.

See Also