2
Answers

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

Photo of sarit man

sarit man

5y
700
1
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)