Date Format

The Date Format action node is used to reformat a date input into another specified format.

This node is typically used after a Request Input node, where a user is required to provide a date or an API call where a date is returned.

If the date was formatted without exceptions, the action node will return "Yes". Else it will return "No", including parse exceptions.

For example, if a user enters a date in yyyy-MM-dd format and we want to convert it into dd-MM-yyyy format, you can use the Date Format node. After a successful conversion, the node will return a "Yes" response. If the conversion failed, the node will return a "No" response.

Examples

The table below lists the common letters that can be used to specify the date format patterns in Chat Flow: