Add date formatting and validation