added readonly to type date