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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Date value to int

Hi there !
I am using TOS for Data Integration for 4 weeks now, and i am really excited about it.
Before i used Oracle Warehouse Builder.
In OWB i did some calculations with date fields. (example: count how many days there are between two date fields)
I also convert the date values to a integer (in OWB: TO_NUMBER(TO_CHAR(INGRP1.REGISTRATION_DATE, 'YYYYMMDD')) ).
Is there a way to do the convert in Talend?
Thanks!
Best regards,
Dennis
P.S. i am using PostgreSQL
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

in talend you would use java to do this (probably in a tMap)
Integer.parseInt(routines.TalendDate.formatDate("yyyyMMdd",row1.MY_DATE))
you may need to "fix" my syntax, not 100% sure that is exactly accurate.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

in talend you would use java to do this (probably in a tMap)
Integer.parseInt(routines.TalendDate.formatDate("yyyyMMdd",row1.MY_DATE))
you may need to "fix" my syntax, not 100% sure that is exactly accurate.
Anonymous
Not applicable
Author

Thanks, this is the solution i was looking for !
It works really well 0683p000009MACn.png
Thanks!