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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need to Pass Date time As Hardcoded parameters in the context file

Hello Guys,

 

Need to Pass Date time As Hardcoded parameters in the context file

Is this possible 

Labels (2)
3 Replies
Jesperrekuh
Specialist
Specialist

Elaborate a bit more... your question confuses me... hardcoded and pass ?
a - You want to run a job and pass the datetime to the job?
or
b - You want a fixed datetime like '2004-03-01 00:00:00' as never changing value...

 

Both are possible

Anonymous
Not applicable
Author

I want a fixed DateTime like '2004-03-01 00:00:00' as never changing value and that value need to configure in the context file.
Jesperrekuh
Specialist
Specialist

Create a context named 'parameters' in Talend, and add a variable 'mydate' type String, add your value.
Load the context in your specific job, if you want to use it as a real Date:
TalendDate.parseDate('yyyy-MM-dd HH:mm:ss', context.mydate)