I can't seem to convert a sqldatatime.minvalue to a datetime object.
I tried:
Datetime dt = Convert.ToDateTime(SqlDateTime.MinValue); That obviously didn't work.
No need to convert. SqlDateTime has a Value property that returns a DateTime.
DateTime dt = SqlDateTime.MinValue.Value;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With