1. Handlebars Helpers
  2. Current Datetime Formatted

Handlebars Helpers

Current Datetime Formatted

Returns the current date and time in a specified format.

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

Parameter Description
1 The locale for the time format eg. "en-US"
2 The options for the time format according to Javascript DateTimeFOrmat (has a US default)

eg. {{#current_datetime_formatted [locale] [options]}}{{/current_datetime_formatted}}

Examples

Format current date and time according to US locale

Example definition:

loading...

Substituted definition

loading...