6.14 Handling Date and Time Information in Connector/Net

6.14.1 Fractional Seconds
6.14.2 Problems when Using Invalid Dates
6.14.3 Restricting Invalid Dates
6.14.4 Handling Invalid Dates
6.14.5 Handling NULL Dates

MySQL and the .NET languages handle date and time information differently, with MySQL allowing dates that cannot be represented by a .NET data type, such as '0000-00-00 00:00:00'. These differences can cause problems if not properly handled.

The following sections demonstrate how to properly handle date and time information when using Connector/Net.