Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
GuruLatha
Contributor
Contributor

How to add 60 minutes to a modifieddate(columnname) datetime(columntype) using expression builder

I have a column called modifieddate with datetime type . now i need to add 60 minutes for that column using expression builder.

Labels (1)
8 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You can try below.

 

[Your Field Name] + time#(60,'h')

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
GuruLatha
Contributor
Contributor
Author

When trying like above i am getting below error

 

Failed to init column calculation expression '[ModifiedDate] + time#(60,'h')'
SQLite general error. Code <1>, Message <unrecognized token: "#">.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Are you trying this in SQL Select statement or in Load Statement?

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
GuruLatha
Contributor
Contributor
Author

Date.PNG

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Ohh It seems you are trying this in Compose or in Replicate right?

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
GuruLatha
Contributor
Contributor
Author

I am trying in Qlik Replicate

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

OK. I need to check in Replicate. Will try and get back to you.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
GuruLatha
Contributor
Contributor
Author

When i am giving like below it goes like this - 0000-00-00 00:00:00.000

 

datetime('now','+60 minutes','localtime')