Fixed wrong date for the date datatype when the data element was in edition mode