Sign In
Sign In
  1. Home
  2. BUILD
  3. Data Manipulation
  4. Data Manipulation - Examples
BUILD
49 articles
Categories
Bulk translate
Steps in Flow Builder11
Start Intent1
🪄 Generate with AI4
Answers
File Upload
LiveChat Handover7
Ticket Handover1
APIs
Data Manipulation2
Data Manipulation - Advanced
Data Manipulation - Examples
Variables
Logic & Conditions2
User Input
[Deprecated] Draft Mode & Advanced Builder10
Trace in Flow Builder
Use Cases5

Data Manipulation - Examples

Apply practical Jinja examples, such as date formatting, to transform and reformat variables in the Data Manipulation step.

Updated on September 24, 2026

Format a date

Let's say that using an API call you get a date under the following format 20230730T1028 and stores it in the variable departure_api. You can use the to_date filter (one of our custom jinja filters) to convert it into a python datetime object and display the date to the format that suits you using the strftime method of datetime objects.

Python
# departure_api contains the following value "20230730T1028"

# departure_api is converted into a datetime object
{% set departure=departure_api | to_date %}

# departure is formated according to the following format "%H:%M - %d/%m/%Y"
{% set departure=departure.strftime("%H:%M - %d/%m/%Y")  %}

# After the execution of the block the variable departure contains
# the following value "10:28 - 30/07/2023"

Was this article helpful?

Made from France 💙

Categories

  • ANALYTICS
  • BUILD
  • LOUIS AI
  • INTEGRATE

🔗 Useful Links

  • Sign In
  • Website
  • Terms & Conditions

© 2026

MindsayPowered by Mindsay

Search the help center…

Search help center articles