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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Talend Date

I am getting date value from the DB and assigned to context variable 

 

But when i try to use in the subsequent query it takes values as below  .. How do i eliminate those timestamp values ?

 

2018-01-22 00:00:00.0

Labels (2)
2 Replies
Anonymous
Not applicable

The Java Date class will automatically store a timestamp. You can't get rid of it and shouldn't want to. What is a day without an hour? What is an hour without a minute? What is a minute without a second? Take a look here (https://docs.oracle.com/javase/8/docs/api/java/util/Date.html). What exactly is your problem with the time element to this date? Are you trying to write a query using a date without the timestamp? If so, you need to look at formatting the date. This page might help you with that (https://help.talend.com/reader/~R4Lk_SlELw9a8pKBKTm9A/JFWl8U3lEbhWZEFAUtYvMw)

Karuetl
Creator II
Creator II
Author

I am able to implement using to_date function in the query