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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Darmesh
Contributor III
Contributor III

How to remove .0 at the end of date field

How to remove .0 at the end of date field?

Am taking datetime field from table which is in format "yyyy-MM-dd HH:mm:ss". But when i passing the date value to context variable i am getting extra zero at end of seconds .

2022-04-01 17:08:31 date as per table

2022-04-01 17:08:31.0 date when passing as context.

Is there any way to remove .0. i want it to be in date format not in string.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Read the data with string type, remove .0 from the string and then convert the string to Date.

 

Regards

Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi

Read the data with string type, remove .0 from the string and then convert the string to Date.

 

Regards

Shong