Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: 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