In the configuration tool add the following code to Presentation > Advanced for the date field
Code: Select all
config.config.parseFormats = [ "dd-MM-yyyy", "ddMMyyyy", "ddMMyy" ];
Then the user will be able to input the following strings to represent 23/06/2017
23-06-2017
23062017
230617
Note the sequence of the formats is important as the first one to match is used.
Rather than doing this for every date field in your business space you can create this as a single javascript function in your CUSTOM/JS folder
Code: Select all
function AllowedDateFormats(dateField) {
dateField.parseFormats = [ "dd-MM-yyyy", "ddMMyyyy", "ddMMyy" ];
}
Then call it from all the date fields by inserting the following in the configuration tool Presentation > Advanced
Code: Select all
AllowedDateFormats(config.config);