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: 
Strooprover
Contributor
Contributor

QV date vs SQL date

Hi,

I would like to compare a SQL datefield with a QV date variable in my SQL where clause but get an error.

My QV variable is: 

let vStartDate = Today();

 

my SQL where clause:

where [Orderdate] <= '$(vStartDate)'

Strooprover_0-1636792664945.png

Anyone knows how to solve this error?

Thanks in advance!


Gr.

1 Reply
marcus_sommer

Today() returns the date with your defined standard-format respectively without such defining with the OS standard. This format may not be suitable for your database but you could add the needed format-pattern with something like:

date(today(), 'MyFormatPattern')

- Marcus