Lets say i have a TextBlock thats bound to a DateTime, is there any way to replace the value 0001-01-01 00:00:00 with an empty string?
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.
You have a few options:
DateTime?(that is,Nullable<DateTime>) rather thanDateTime. Set the value tonullwhen you want nothing to appear.DateTime.MinValueto an emptystring.DateTime.MinValueto an emptystring.Example of #1
Example of #2
Example of #3