Converting datetime database field to Date
Posted: Fri Dec 28, 2012 4:04 pm
I'm trying to convert a datetime field to a Date type (without the time) so I can then compare it with a date parameter.
At the moment this is what I'm selecting from the datasource:
I have also tried the following filter expression:
Can you point me in the right direction please? Surely this can't be too difficult.
Crystal Reports has a Date() function that allows this. Is this something you can look to build in future?
At the moment this is what I'm selecting from the datasource:
I have then tried to apply a filter to the report to check if column field ApptDate is equal to expression Date (being the parameter variable).SELECT ApptDate
FROM Diary
I have also tried the following filter expression:
but it returned errors.{Format("{0:MM.dd.yyyy}", Diary.ApptDate)} = Date
Can you point me in the right direction please? Surely this can't be too difficult.
Crystal Reports has a Date() function that allows this. Is this something you can look to build in future?