Description
Parse real Gregorian expiryDate and appointmentDate.
Care-service administration records appointments, referrals, reimbursements, and contact arrangements. Formatting or comparing these fields supports record keeping; it does not assess a person's needs or replace a professional care decision.
Parse real Gregorian expiryDate and appointmentDate.
When to use this tool
Use Housing Assistance Document Expiry when you need one administrative calculation or label from supplied care-service records.
How to use the tool and how it works
- Enter expiryDate, appointmentDate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read expiredBeforeAppointment, daysRemaining. Inspect expiredBeforeAppointment before interpreting the associated values.
Parse real Gregorian expiryDate and appointmentDate. Return expiry minus appointment in days and expiredBeforeAppointment only when appointment is strictly later.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| expiryDate | Supplied expiry date; boundary inclusion follows the comparison above. | Required. Text; maximum UTF-16 length 8192. |
| appointmentDate | Appointment Date | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| expiredBeforeAppointment | Expired Before Appointment | Required. Boolean. |
| daysRemaining | Days Remaining | Required. Safe integer. |
{
"input": {
"expiryDate": "2026-11-10",
"appointmentDate": "2026-11-01"
},
"output": {
"expiredBeforeAppointment": false,
"daysRemaining": 9
}
} Limitations and assumptions
- The expiry date itself is included by this rule; document validity, benefit eligibility, and agency policy are not established.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use the responsible service's complete workflow and consult an appropriate professional for care decisions.
References
Similar or alternative tools
- Authority Delegation Expiry Flag
Compare real asOfDate with expiryDate.
- Security Record Retention Date
Parse recordDate as a real YYYY-MM-DD date, add retentionDays in 0-100000 using UTC calendar arithmetic, and require output no later than year 9999.