Last active
March 22, 2022 11:19
-
-
Save tejpaldev/668caa3b5b37f384bbeff51d958dd0e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int y = Nullable.Compare<DateTime>(DateTime.UtcNow, x); | |
if y=-1 means x is greater | |
if y=1 means x is lesser | |
if y=0 means equal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment