use DateTime and Date for setting date