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
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dinesh GabhaneRank #265 · 9.5K reputationPosted Dec 8, 2019, 3:43 AM EST
Asad AliRank #1,139 · 1.6K reputationPosted Dec 8, 2019, 9:47 PM EST