convert datetime to date in SSRS 2005 with ODBC Excel data source
Hello all, I have an ODBC Excel data source for an SSRS 2005 report. I need to convert a datetime into date. CONVERT doesn't work. I get an [ODBC Excel Driver] undefined funciton CONVERT. I've tried several iterations of CDate as an expression in the textbox property, including: =CDate(Fields!Estimated_Receipt_Date.Value) Can someone please tell me what I'm missing? Thanks, Jeff
February 9th, 2011 4:45pm

Hi, Since the dataset contains a datetime field, in order to display only date part, one approach is to specify the Format property of the textbox. For example, we can select the textbox which used to display the datatime field, and then specify the Format property to MM/dd/yyyy. After that, only date will be displayed. For more information about Standard Date and Time Format Strings, please refer to: http://msdn.microsoft.com/en-us/library/az4se3k1.aspx If you have any question, please feel free to ask. Thanks, Tony Chain Tony Chain [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2011 5:59am

Perfect. Thank you, Tony.
February 12th, 2011 2:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics