human
datetime make date from string.
assistant
Here is a Python code to datetime make date from string

import datetime

def make_date(string):
    """Return datetime object from string."""
    return datetime.datetime.strptime(string, '%Y-%m-%d')

# Enter the string
string = "2019-01-01"

# Calling the function
date = make_date(string)

# Printing the result
print(date)

#Example Output
# 2019-01-01 00:00:00

#Remember to inspect code for bugs.