switch date fields for text fields