Change date property to Date instead of string