Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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".
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
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