I have an internal business process that my finance dept runs. To kick it off they input a Date in the format of yyyyMM
or 201009
. I want to check for a valid date from that string but so far I got nothing.
I am currently exploring breaking the string up, taking the first 4 and checking that they are between 1990 and 2050(as example) and then the last 2 and checking that it is between 01 and 12.
Is there a better way?