DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
c# how to compare 2 dates without time
if
(
dateTime1
.
Date
==
dateTime2
.
Date
)
// or
if
(
dateTime1
.
Date
.
CompareTo
(
dateTime2
.
Date
)
)
{
}
Source by dotnet.microsoft.com #
PREVIOUS
NEXT
Tagged:
#compare
#dates
#time
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit