Changed: Combined format_date and format_time into a single function with an argument to display only date.