from datetime import datetime


def datetime_from_string( date_string ):
    """Parse datetime object from a given string formatted as 'yyyy-mm-dd'"""
    return datetime.strptime( date_string, "%Y-%m-%d" )