Internal format for dates

Date values are always stored internally using the format YYYYMMDD HH:MM:SS.mmm for date and time, YYMMDD for date only, and HH:MM:SS.mmm for time only (milliseconds are optional).