Handlebars Helpers
Current Datetime Formatted
Inserts the current date and time in a chosen format during Handlebars substitution. Useful for timestamps, reports, messages, and generated documents.
Uses
- Use to put a timestamp in a specific format
- Use in a AI system prompt to make the AI aware of the current time
Usage
Helper name : current_datetime_formatted
eg.
{{#current_datetime_formatted [locale] [options]}}{{/current_datetime_formatted}}
Examples
Format current date and time according to US locale
Example definition:
Substituted definition