Is it possible to compare two
but to ignore the Time portion.
The software adds a publication date and saves stuff in the database. I need to be able to pull by the date but yet maintain the precise time.
I'd want to contrast
and make it ignore the time of day so that each of these are treated equally.
I suppose I can set all of the timings to
I genuinely do want to know the time of day before comparing, but I also want to be able to compare solely by dates.
I discovered some code that compares the year, month, and day independently and has the same problem. Exists a more effective approach to this?
real estate on the
if(dtOne.Date == dtTwo.Date) ....
You may use: to make a genuine comparison.