I want to pass a Date (or DateTime, whichever will work) parameter to an SQL command. The Database has a datetime field and I want to compare the value in that field to the parameter. All of the datetimes in the Database should be at 00:00:00 for that day.
Previously, I used V.Date>={ts 'YYYY-MM-DD 00:00:00'} AND V.Date<{ts 'YYYY-MM-DD+1 00:00:00') (where DD+1 is the next day). However, this was generated by Crystal Reports using the record selection formula. With the needs of this new command, I can't use that, but I want to have a similar comparison using the parameter.
What are my options?
Previously, I used V.Date>={ts 'YYYY-MM-DD 00:00:00'} AND V.Date<{ts 'YYYY-MM-DD+1 00:00:00') (where DD+1 is the next day). However, this was generated by Crystal Reports using the record selection formula. With the needs of this new command, I can't use that, but I want to have a similar comparison using the parameter.
What are my options?