cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date validation

Former Member
0 Likes
2,436

How can I restrict user to enter date in only dd/mm/yyyy format? I tried regular expression in datepicker but it is too complex for others if they want to make modifications. Please help me resolve this. Thanks in advance.

View Entire Topic
0 Likes

Hi Pavankumar A N,

Use the given Properties in Date Picker

valueFormat and displayFormat

< DatePicker valueFormat="dd.MM.yyyy" >

BR

Arun Mathew

Former Member
0 Likes

Thank you Arun for the response, we tried all these but we can create a record with 124341/123312/123431 this value also. Can you please help me resolve this?

0 Likes

In date picker, you can select the date from the calendar instead of enter the value.

0 Likes

go through the following link it may help you out!..

Date Picker

BR,

Arun Mathew.