import datetime def get_calendarweek_from_datetime(datetime_obj): return datetime_obj.strftime('%V') def get_current_date(): return datetime.date.today()