Hi folks.
Working with the DatePicker component I saw there is no option to see the mask based on the format date required when the initial value is null. I mean when I enter a valid date but without - or / character to separate the M/d/yyyy the values are not formatted automatically.
As a workaround, I tried to get the correct Date typed by the user(without characters to separate the date I mean if the Date should be 10/4/1997 the user enters 1041997) to Parse it to a valid Date and show in the DatePicker input the value with the character separation, but when getting the args with the ValueChange event I get the min DateValue and no 1041997 value. I am setting the TValue as DateTime?
I think using the <input id="datepicker" /> <SfMaskedTextBox> is not a workaround since is like building a new component and missing Properties that SfDatePicker has.
Do you have any another suggestion?
I saw there is already a
validation to implement the mask in the DatePicker component but not scheduled.
Thnaks for your help in advance