I have a masked text box which is displaying a date from a dataset.
The mask is 00/00/0000 and a prompt character of -, thus displaying as --/--/---- to the user.
My problem is how the date is displayed. For example, if I have a date 1/25/2008, it is being displayed as 12/52/008-.
I have also tried
- mask: 99/99/9999
- FormatDateTime with DateFormat.ShortDate
- changing the TextMaskFormat to MaskFormat.ExcludePromptAndLiterals
and still received the same result.
Can anyone help?
The mask is 00/00/0000 and a prompt character of -, thus displaying as --/--/---- to the user.
My problem is how the date is displayed. For example, if I have a date 1/25/2008, it is being displayed as 12/52/008-.
I have also tried
- mask: 99/99/9999
- FormatDateTime with DateFormat.ShortDate
- changing the TextMaskFormat to MaskFormat.ExcludePromptAndLiterals
and still received the same result.
Can anyone help?