c# - Problem in MaskedTextbox using for Persian date input -


In Persia (Iran), when we want to write a date, first we write the day of the month, for example For 18 we write months of the year, for example 6 and then we write our year for example, and the text should be 1367/6/18. I have added a masked box in my form (right tool = yes; mask = 00/00/0000) (RightToLeft = Yes; RightToLeftlayout = True)

The data input format is correct but it is 18/06/1367 Displays data as

What is the solution?

You can change your mask to use spaces between numbers and slashes:

00 / 00/0000

In this way you can enter the value of the previous one, but the display direction is the same:

1367/06/18

Explain this behavior

Comments