Date Formatting
- Create a JavaScript function that formats a date according to a specified format string.
- date: A Date object representing the date to be formatted.
- formatString: A string specifying the desired format (e.g., 'YYYY-MM-DD', 'DD/MM/YYYY', 'MM DD, YYYY').
- function formatDate(date, formatString) { // ... };