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, 'datetime.datetime.utcnow', 'datetime.utcnow', False, 'from datetime import datetime, timedelta\n'), (17, 'datetime.timedelta', 'timedelta', False, 'from datetime import datetime, timedelta\n'), (9, 'datetime.datetime.utcnow', 'datetime.utcnow', False, 'from datetime import datetime, timedelta\n'), (13, 'datetime.datetime.utcnow', 'datetime.utcnow', False, 'from datetime import datetime, timedelta\n'), (29, 'datetime.datetime.strptime', 'datetime.strptime', False, 'from datetime import datetime, timedelta\n')]