I have a string where I store day, month and year, no field is required, and I separate the fields by a pipe .
If you put the day only via "25", if you have placed the day and month or only the month will be respectively "25 | 12" or "| 12".
The same logic for year we can conclude is that if you have year the string will have 2 pipes.
I needed to get the value of the year, ie the value after the 2nd pipe that can even be empty, if the user has deleted. The user can type 1 or 2 characters for day or month and up to 3 characters for the year, so I can not use substring
counting the characters.
Does anyone know how I can do this?