From f4d0a9ddf45e298eaf45b6efb29d97aae4ff5d8c Mon Sep 17 00:00:00 2001 From: forge-bot Date: Thu, 9 Jul 2026 01:02:14 +0000 Subject: [PATCH] Design Architecture for Utility Functions (iss-1ac610bafd4c) --- utils/date_utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 utils/date_utils.py diff --git a/utils/date_utils.py b/utils/date_utils.py new file mode 100644 index 0000000..df1b210 --- /dev/null +++ b/utils/date_utils.py @@ -0,0 +1,11 @@ +from datetime import datetime + + +def get_current_date(): + """Returns the current date as a string in YYYY-MM-DD format.""" + return datetime.now().strftime('%Y-%m-%d') + + +def format_date(date, format='%Y-%m-%d'): + """Formats a given date to the specified format.""" + return date.strftime(format) \ No newline at end of file