Design Architecture for Utility Functions (iss-1ac610bafd4c)
Some checks are pending
ci / test (push) Waiting to run

This commit is contained in:
forge-bot 2026-07-09 01:02:14 +00:00
parent 43f1a45982
commit f4d0a9ddf4

11
utils/date_utils.py Normal file
View file

@ -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)