Fix value of Date type