.. index:: ry .. _ry_help: RY constructor for YearlyDate. Usage: obj = ry(year) obj = ry(dateString) dateObj = ry(datenumber); Inputs: - year: Year of the date in double (e.g., 2023) - dateString: A string in the format 'mm/dd/yyyy' or 'yyyy' or 'yyyy-mm-dd' - datenumber: A regular matlab datenumber. Note that the function will treat the input as a date number if it has more than 4 digits. A warning will be issued as well Example: dateObj = ry(2023); dateObj = ry('2023'); dateObj = ry('01/01/2023'); dateObj = ry(737999); See also rd, rw, rm, rq, rh, ra.