I have a maskedtextbox. I am trying to convert the contents to DateTime but when I do it says it is not a valid string. I have checked the value at runtime and it is returning the mask in the string. I did a little research and found the TextMaskFormat property. I have set this to ExcludePromptsandLiterals but it is still returning the mask in the value. Any idea why?