- import datetime
- def get_calendarweek_from_datetime(datetime_obj):
- return datetime_obj.strftime('%V')
- def get_current_date():
- return datetime.date.today()
- def get_current_month_year_as_str():
- current_date = datetime.datetime.now()
- return current_date.strftime("%m/%Y")
|