ToDateOnly Method ToDateOnly() Converts the value of this HLocalDate to its DateOnly equivalent. Declaration public DateOnly ToDateOnly() Returns DateOnly The DateOnly representation of this instance.