Cast date to string