HDATE Function (Gnumeric)
Convert Gregorian components to transliterated Hebrew-calendar labels with Gnumeric HDATE, distinguishing display text from numeric dates.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
HDATE converts a Gregorian year, month, and day into a Hebrew-calendar date label. The returned text uses Arabic digits and a transliterated month name. It is suitable for display alongside the original Gregorian date; it is not a numeric Hebrew date serial for arithmetic or chronological sorting.
Syntax and defaults
HDATE([year], [month], [day])
All three inputs describe the Gregorian date: year is the full year, month is 1 through 12, and day is the day of that month. Each omitted argument defaults to the corresponding component of the current date obtained by the running process. For reproducible records, provide all three explicitly.
The source converts numerical arguments to integers. Avoid fractional components. The function is registered as volatile, and a formula using the current-date defaults can change as the environment’s date changes. Explicit dates are easier to review and reproduce.
Worked example: Gregorian and Hebrew labels
Enter the following in a blank sheet:
| Formula | Native text result |
|---|---|
=HDATE(2001,3,30) |
6 Nisan 5761 |
=HDATE(2023,9,16) |
1 Tishri 5784 |
The second result uses Gnumeric’s spelling Tishri. Do not assume that a display string from another calendar library will have the same transliteration. If you store the input components in A2:C2, =HDATE(A2,B2,C2) is the equivalent reference-based pattern.
Preserve the Gregorian source date or components with the label. Sorting the text labels alphabetically will not necessarily put records in date order, and adding a number to the returned text is not a calendar operation.
Advanced use: validate dates before conversion
The converter does not strictly validate every Gregorian month/day combination. The native test =HDATE(2023,2,31) returns 10 Adar 5783 rather than rejecting the impossible February date. This follows from the implementation’s broad component checks followed by its day-number calculation.
Consequently, a successful Hebrew label is not proof that the input was a valid civil date. Validate imported components separately, especially in forms where month and day are independent numeric fields. Keep any normalization policy explicit instead of silently accepting a rolled date.
For a dated report, use a validated stored date and extract its Gregorian components before constructing the label, or use the date-serial member of this function family. The component form is most convenient when the original source already supplies year, month, and day separately.
Errors and practical limits
=HDATE(2023,13,1)returns#VALUE!; month 13 is not a Gregorian month.- A Hebrew year is not a valid substitute for the Gregorian year argument simply because the desired output uses the Hebrew calendar.
- Do not infer strict validity from the absence of an error; February 31 is an explicitly demonstrated counterexample.
- The function has no time-of-day, location, or sunset argument. It is a civil-date conversion, not a determination of the local religious-day boundary.
- Transliteration, numeral style, and punctuation are part of the label, not stable numerical fields for a database key.
Version and verification
The release notes announce Hebrew-calendar functions in Gnumeric 1.9.15, and that release’s official source registers HDATE. The guide uses the 1.12.57 implementation and four native cases under C.UTF-8 on 17 October 2026. No all-date-range certification, local sunset calculation, or GUI testing is claimed. No retirement is established.