Added resolution for no converstion of datetime object to string