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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
DrGenious
Creator
Creator

Convert timestamps with java

Hi,

 

I have a column with many timestamps and I want to convert them from string to date but with java , not with tmap.

Thanks you. 

Labels (2)
1 Solution

Accepted Solutions
DrGenious
Creator
Creator
Author

@ravinderk This is very generic. I asked for some help.
Thanks god , I figure it out somehow

In tjavarow

//input the  column with the date-string

String sDate1=input_row.newColumn2;

//parse with the format that our string has ! If We want other format we can change it in "edit schema".
Date date1=new SimpleDateFormat("dd-MM-yy HH:mm").parse(sDate1);

 

If someone has a different and better solution please post it.

View solution in original post

2 Replies
Anonymous
Not applicable

Use timestamp functions in tjavaRow.

DrGenious
Creator
Creator
Author

@ravinderk This is very generic. I asked for some help.
Thanks god , I figure it out somehow

In tjavarow

//input the  column with the date-string

String sDate1=input_row.newColumn2;

//parse with the format that our string has ! If We want other format we can change it in "edit schema".
Date date1=new SimpleDateFormat("dd-MM-yy HH:mm").parse(sDate1);

 

If someone has a different and better solution please post it.