from datetime import datetime, timedelta

due_date_format = '%Y-%m-%d'

datepicker_date_format = '%m%d%Y'


def current_date():
    return datetime.utcnow().strftime(due_date_format)


def datepicker_current_date():
    return datetime.utcnow().strftime(datepicker_date_format)


def _date_from_today(days_to_add):
    return datetime.utcnow() + timedelta(days=days_to_add)


def date_from_today(days_to_add):
    return _date_from_today(days_to_add).strftime(due_date_format)


def datepicker_date_from_today(days_to_add):
    return _date_from_today(days_to_add).strftime(datepicker_date_format)


def datepicker_to_due_date_format(datepicker_date):
    return datetime.strptime(datepicker_date,
                             datepicker_date_format).strftime(due_date_format)

[((17, 11, 17, 28), 'datetime.datetime.utcnow', 'datetime.utcnow', ({}, {}), '()', False, 'from datetime import datetime, timedelta\n'), ((17, 31, 17, 58), 'datetime.timedelta', 'timedelta', (), '', False, 'from datetime import datetime, timedelta\n'), ((9, 11, 9, 28), 'datetime.datetime.utcnow', 'datetime.utcnow', ({}, {}), '()', False, 'from datetime import datetime, timedelta\n'), ((13, 11, 13, 28), 'datetime.datetime.utcnow', 'datetime.utcnow', ({}, {}), '()', False, 'from datetime import datetime, timedelta\n'), ((29, 11, 30, 52), 'datetime.datetime.strptime', 'datetime.strptime', ({(29, 29, 29, 44): 'datepicker_date', (30, 29, 30, 51): 'datepicker_date_format'}, {}), '(datepicker_date, datepicker_date_format)', False, 'from datetime import datetime, timedelta\n')]