We have a Custom label that stores the value of a particular date like 11/19/2022 (mm/dd/yyyy) This label is being used in several places in the code. And we are comparing another date with this date after parsing it. if(SignedDate >= Date.parse(Label.ExpDate))
It works fine if the logged in user's locale is English(US) but is failing for other locales because of invalid date format. As different locales will have different date format. Since, there are users from different locales using the application, how can we make this generic? custom label translations won't work because that only checks the user's language and not locale.