Changing type date