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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Fig1
Contributor III
Contributor III

date formula in where clause

I think there is an issue with this formula in my where clause. can anyone see an issue with this??

APPT_DATETIME >= CONVERT(DATETIME, '2019-01-01 00:00:00',102)

(the format of the field is YYYY-MM-DD 00:00:00.000000)

1 Solution

Accepted Solutions
Fig1
Contributor III
Contributor III
Author

thanks for you help.  I realised i was connecting to an oracle database so have to use the TO_DATE function

View solution in original post

2 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

I think you are using the wrong Style in convert function. Try this:

CONVERT(DATETIME, '2019-01-01 00:00:00',120)

Fig1
Contributor III
Contributor III
Author

thanks for you help.  I realised i was connecting to an oracle database so have to use the TO_DATE function