.net - Nullable-How to compare only Date without Time in DateTime types in C#? -



.net - Nullable-How to compare only Date without Time in DateTime types in C#? -

how compare date without time in datetime types in c#.one of date nullable.how can that??

you can utilize date property of datetime object

datetime x; datetime? y; if (y != null && y.hasvalue && x.date == y.value.date) { //dosomething }

c# .net datetime

Comments

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -