writer for datetime type
reader for date time type