pr fixes
unicode to datetime
if purchase_date is unicode than convert to datetime