def _get_date_from_str(date_input):
 return datetime.datetime.strptime(date_input.strip(), '%Y-%m-%d').replace(tzinfo=pytz.UTC)

def _get_date_from_str ( date_input ) : return datetime . datetime . strptime ( date_input . strip ( ) , '%Y-%m-%d' ) . replace ( tzinfo = pytz . UTC )
gets date from the date input string .