1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
411 views
by nickie-l-1757 (200 points)
I'm trying to pass the QIE channel variable  last_run with value  '20210508103020123' to a sql that expects a date value

SQL server is not recognizing the value as a date string

what needs changing..thanks in advance

1 Answer

0 votes
You can format a date variable in QIE.

var myDate = qie.formatDate("yyyy-MM-dd", '20210508103020123');

Depending on the database field you may need a different format.
by michael-h-5027 (14.8k points)
...