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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
LDPtechAFB
Contributor III
Contributor III

How to set my context variable to Date without error ? (Null value will be used for context parameter date: Unparseable date: "")

Hello, I have to set my global variable to claim the current date with the format ("yyyy-MM-dd'T'HH:mm:ss'Z'");

When i do a TalendDate.getDate("

yyyy-MM-dd'T'HH:mm:ss'Z'") it work.

But when i want to assign this value to my context variable. It say that we cannot convrt String to Date.

And when I don't fill the default value, it say that the value will take the value "null".

0693p000009IBP1AAO.png

But i need to have --> a today date OR nothing for the first loop.

-> Then with my tjava, I set my variable from the last Date from my API's result.

I looked for several other Post but no one helped me.

Regards

Labels (2)
1 Reply
jilanisyed
Creator
Creator

generally TalendDate.getDate return the date as String Data type.

you can change your context variable data type to String or use TaendDate.CurrentDate function