Skip to Content
Former Member
Apr 02, 2015 at 01:17 PM

How to Validate date attribute value in cockpit Editor Area


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 ....