Debug export for DATE and DATETIME format - bug #3