Unable to convert MySQL date / time value to System.DateTime error handling

Today, the test program when the error was found, the record about

-- By Brisk yu

The reason: The default value is the default datetime: 0000-00-00 / 0000-00-00 00:00:00 converted into a System.DateTime when there will be a problem.

Solution:
1) The default value null

2) arranged string type v

Later Usage 2) to solve the problem

Guess you like

Origin www.cnblogs.com/brisk/p/11242981.html