• I am trying to setup a date field that must be in the following order
    xx/xx/xxxx mm/dd/year
    This is the code I am using
    required::required,pattern::[01-12]{2}-[01-31]{2}-[1600-2500]{4},title::Must use following order mmddyyyy example 01/01/2022
    Text-line
    I don’t want users to be lazy and enter 1/3/2022 Must be 01/03/2022
    Yes we have records that start from the year 1600.

Viewing 1 replies (of 1 total)
  • Plugin Author Roland Barker

    (@xnau)

    You’re close, I suggest you delve a little deeper into how to use a regex pattern. Your use of character groups is not correct, you need to take a different approach altogether.

    A good way to do this is to use a regex tester, that way you can be sure you’re getting the desired result: https://regex101.com/

Viewing 1 replies (of 1 total)

The topic ‘Date Pattern’ is closed to new replies.