Format a date for safe use in filenames
Source:R/helpers_results_download.R
format_date_for_filename.RdConverts a Date object or date string to ISO format (YYYY-MM-DD) suitable for use in filenames. Falls back to sanitizing the raw string if parsing fails.