2
Answers

Is it possible to convert a date type to a numeric type in c

I need to compare a double type with a datetime type.
I tried to convert in this way:
Convert.ToDouble(DateTime.Today - item1.BornDate) 
but there is a compilation error

Answers (2)