I have the code below:
import datetime
def get_date(x, y):
    last_day = date.today().replace(day=1) - timedelta(days=1)
    start_day= date.today().replace(day=1) - timedelta(days=last_day_of_prev_month.day)
    start_day_of_prev_month = start_day.strftime('%Y-%m-%d')
    last_day_of_prev_month= last_day.strftime('%Y-%m-%d')
    today = date.today().strftime('%Y-%m-%d')
    firstDayOfMonth = date.today().replace(day=1).strftime('%Y-%m-%d')
    lastDay = sf.date_sub(sf.current_date(), 1)
    if today == firstDayOfMonth:
        x = start_day_of_prev_month,
        y = last_day_of_prev_month
    else:
        x = firstDayOfMonth,
        y = lastDay
    return 0
I need it to return two dates according to the "if" above 'x','y'. The output would be for example:
'2022-08-01','2022-08-18' 
But, this function don't return this output.
Can anyone help me?