hello
how to compare two dates where we can check one date is greater than other in C#
language
thanks
hello
how to compare two dates where we can check one date is greater than other in C#
language
thanks
If your values are in the format of DateTime objects then you can use > or < to compare dates .
If not then convert them to DateTime and compare , it will yield the output.
can you elaborate what data type is dtone. is it a string or ?
how can we convert it into datetime obj. can you share the syntax
had used the syntax
DateTime.ParseExact(deadlineDate,“MM/dd/yyyy” , System.Globalization.CultureInfo.InvariantCulture)
giving compile error
It’s not datatype it’s just a variable name. Datatype of the variable would be datetime.
Thanks,
Ashok
how can we provide value to date time object
thanks
Can you show us deadLineDate value?
Hello @nikhil.chandre,
Try below steps
Regards,
Pradeep Shiv