correct datatype for date