date_format
Formats a date with a format string.
Target
Signature
1date_format(value, format::string)Formats a date with a format string.
date_format is a global callable that can be used wherever an expression is valid. date_format handles calendar, duration, or formatting behavior. Store values in structured date or duration form and format them only when presenting text.
Parameters
value- Required value. Supply
valuepositionally unless the signature shows a keyword form. format- Required value of type
string. Supplyformatpositionally unless the signature shows a keyword form.
Examples
Basic call
1date_format(date, '%Y-%m-%d')The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.