.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

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -