One of the arguments that my script receives is a date in the following format: yyyymmdd
.
I want to check if I get a valid date as an input.
How can I do this? I am trying to use a regex like: [0-9]\{\8}
One of the arguments that my script receives is a date in the following format: yyyymmdd
.
I want to check if I get a valid date as an input.
How can I do this? I am trying to use a regex like: [0-9]\{\8}