Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Ameya09
Partner - Contributor III
Partner - Contributor III

Date formula conversion

How to convert date in below format which is output of previous block : 

2026-06-17T09:25:35Z 

Ameya09_0-1781690409067.png

What to input in the input and output formats if date formula is to be used?

Labels (1)
  • SaaS

1 Solution

Accepted Solutions
priscilarubim
Partner - Creator III
Partner - Creator III

Hi @Ameya09 ,

 

Quick heads up on what is going on here: the Date formula in Qlik Automate does not use Qlik Sense date tokens. It is PHP style formatting under the hood, so YYYY and DD will not do what you are used to from the load script. That is the whole problem.

 

Good news is your value, 2026-06-17T09:25:35Z, is plain ISO 8601, so the formula reads it with no help at all. Leave the Input format blank and it parses fine. If you would rather spell it out, it is Y-m-d\TH:i:s\Z. The backslashes on the T and Z are not optional, since both are real tokens (timezone stuff), so without escaping them the formula tries to interpret them instead of reading them as text.

 

For the output, your DD/MM/YYYY hh:mm A becomes d/m/Y h:i A.

 

Watch the minutes, because this is the one that catches everybody: minutes is i, not m. The m token is the month, so mm prints the month twice instead of the time. With d/m/Y h:i A you get 17/06/2026 09:25 AM.

 

Want a 24 hour clock instead? Use H and drop the A. So d/m/Y H:i gives you 17/06/2026 09:25.

 

Token list is here if you want it bookmarked: https://community.qlik.com/t5/Official-Support-Articles/Formatting-datetimes-in-Qlik-Application-Aut...

View solution in original post

1 Reply
priscilarubim
Partner - Creator III
Partner - Creator III

Hi @Ameya09 ,

 

Quick heads up on what is going on here: the Date formula in Qlik Automate does not use Qlik Sense date tokens. It is PHP style formatting under the hood, so YYYY and DD will not do what you are used to from the load script. That is the whole problem.

 

Good news is your value, 2026-06-17T09:25:35Z, is plain ISO 8601, so the formula reads it with no help at all. Leave the Input format blank and it parses fine. If you would rather spell it out, it is Y-m-d\TH:i:s\Z. The backslashes on the T and Z are not optional, since both are real tokens (timezone stuff), so without escaping them the formula tries to interpret them instead of reading them as text.

 

For the output, your DD/MM/YYYY hh:mm A becomes d/m/Y h:i A.

 

Watch the minutes, because this is the one that catches everybody: minutes is i, not m. The m token is the month, so mm prints the month twice instead of the time. With d/m/Y h:i A you get 17/06/2026 09:25 AM.

 

Want a 24 hour clock instead? Use H and drop the A. So d/m/Y H:i gives you 17/06/2026 09:25.

 

Token list is here if you want it bookmarked: https://community.qlik.com/t5/Official-Support-Articles/Formatting-datetimes-in-Qlik-Application-Aut...