Quantcast
Viewing all articles
Browse latest Browse all 15795

VS 2019 Select Records Between Two Dates

Hello all.

I am trying to get a list of records between two dates.

The following SQL is written in a TableAdapter (Jobs)

PHP Code:

Select From Jobs Where [InDateBetween ('@StartDate') And ('@EndDate'

StartDate and EndDate are DateTimePickers.

I am recieving the following message.

Exception Unhandled.

System.Data.SqlClient.SqlException: 'Conversion failed when converting date and/or time from character string.'



All help appreciated in advance, Shane.

Viewing all articles
Browse latest Browse all 15795


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>