date to string bugs