Hello,
I am attempting to get the number of days between two dates.
I have used the datediff function to do this and keep getting the "Conversion failed when converting date and/or time from character string" Error.
Both fields are a datetime field and I have looked for bad data in all of the cells so I am at a loss as to what is wrong.
Idea's?
I am attempting to get the number of days between two dates.
I have used the datediff function to do this and keep getting the "Conversion failed when converting date and/or time from character string" Error.
Both fields are a datetime field and I have looked for bad data in all of the cells so I am at a loss as to what is wrong.
Idea's?
Code:
DATEDIFF(DAY, 'tblarInvoice.InvoiceDate','tblarCashReceipt.PaymentDate') As 'Total Days'