Reading data from MSSQL for a date range using DatePicker

Hi, Im having problem when reading data from MSSQL. I can't get the SQL statement right and get this error always. I did try to change the format type to the same as MSSQL, but it didn't work.


image

this is my flow:
flows.json (7.1 KB)

You have created an ISO8601 timestamp format which is incorrect for MSSQL. Correct format for MSSQL is 'YYYY-MM-DD HH:MM:SS', e.g. '2022-12-09 12:34:56'.

1 Like

I did try, but still get the same error

No you haven't - check that date string again, it is not 'YYYY-MM-DD HH:MM:SS', it is 'YYYY-MM-D H:M:S'

1 Like

I try again, and this is the result

I'm wrong in using flow variable, it works now with your suggest, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.