updated to set default date and datetime format for display