Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A Skills Builder user can capture a date in various formats including Epoch and translate it in a user-friendly manner. 

The following strings are available to manage the date format, which helps translating dates that were either specified by a user or from a web service. This is useful for displaying a date back to a user or passing a date to another web service in the required format.

  • <attribute_idenitifier>_iso_tz
  • <attribute_idenitifier>_iso_no_tz

...

Usage in the text response:

Configuration data in a skill:

Here is the start date in epoch: @context.date_time and in ISO 8601 format: @context.date_time_iso_tz and iso without timezone format: @context.date_time_iso_no_t'.

Text response displayed to the end-user with actual values:

Here is the start date in epoch: 1560576600 and in ISO 8601 format: 2019-06-15T11:00:00+05:30 and iso without timezone format: 2019-06-15T11:00:00

...