Date/Time: Revamp mysql2date() to use wp_date() and handle invalid input in a consistent manner.
mysql2date()
wp_date()
Add unit tests, improve documentation.
Props Rarst, pbearne. Fixes #28992.