fix datetime to string