Documentation Home
MySQL and Windows
Related Documentation Download this Excerpt

MySQL and Windows  /  Export Excel Data into MySQL  /  Additional Notes

11.3 Additional Notes

  • Entering "0" into a date column.

    Entering the value "0" into an Excel date column will convert the value to "12/30/1899" in MySQL. This is because Excel first translates the value to the minimum date in Excel, which is "1/0/1900", because dates are internally stored in Excel as numbers (the days that have passed since "1/0/1900". However, because "1/0/1900" is not a valid date, the committed value to MySQL will change to "12/30/1899" because the .NET MySQL connector automatically converts "1/0/1900" to "12/30/1899", which is the closest valid date.


User Comments
Sign Up Login You must be logged in to post a comment.