Return proper date type.