When using ReportViewer and binding a column in a table with a nullable DateTime field it displays the default (DateTime) if the field is null. Is there any expression to not display the default value of the DateTime?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
=IIf(IsNothing(Fields!MyDateField.Value), Parameters!EmptyFullDateTime.Value, Format(Fields!MyDateField.Value, Parameters!FormatFullDateTimePattern.Value))
And I have EmptyFullDataTime parameter defined as –/–/—- –:–
And FormatFullDateTimePattern will be set depending on the culture. (e.g. dd/MM/yyyy HH:mm)
MyDateField is a System.DateTime? type ( nullable )