cancel
Showing results for 
Search instead for 
Did you mean: 

How to Validate date attribute value in cockpit Editor Area

Former Member
0 Kudos

Hi all,

I need to validate date value for ex : if user enter date in wrong format or without separator (10mar2015 instead of 10-mar-2015) i need to show some message saying enter date in correct format

and i tried to validate using validation interceptor and constraint but no results because if user enters wrong value for date attribute by default hybris converts into some other different date so we get date object .

Thank in advance ....

Former Member
0 Kudos

as a challenge can anyone reply on this please.?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thank you Marshall ,

i tried to validate date using validation constraint and validation interceptor but no use before validation the date was getting converted to some other date

i need to validate date as hybris is doing in productcockpit for the fields onlineFrom and onlineTo

so is there any configuration to achieve same for my own cockpit for fileds of type date