Invalid assign error message fixed for date data types.