You can convert date string to datatime object using datetime strptime() method. Then get date from datetime object. So provide the date string and formate to strptime() function.
Example:
import datetime
str_date = '1/3/22'
format = '%m%d%y'
date = datetime.datetime.strptime(str_date , format ).date()
print(date)
Output:
Output will as bellow -
2022-01-03