test convert date to string