Convert date to DB friendly format

This was needed to get the date into a format that CartoDB would accept.