Implement sql-value for DateTime