Test date formatting