date
Creates a date value.
Target
Signature
1date(value= ?, -format::string= ?, -locale::locale= ?)Creates a date value.
date constructs or identifies a LaiRu value type. date handles calendar, duration, or formatting behavior. Store values in structured date or duration form and format them only when presenting text.
Parameters
value- Optional value. Supply
valuepositionally unless the signature shows a keyword form. -format- Optional value of type
string. Supply-formatby keyword, keeping the leading hyphen in the call. -locale- Optional value of type
locale. Supply-localeby keyword, keeping the leading hyphen in the call.
Examples
Basic call
1date('2026-05-20', -format='%Y-%m-%d')The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.