How to verify of the current variables has date in a boolean way like
i have str value 16.5.2021 this i got by regex from pdf text
but instead of date it can have some other values like days , weeks
so how i verify it has date , days , weeks ?
for example u may consider below text , i need to first find date if its not date then find day or weeks then calculate date in dd/MM/yyyy format
Today is 16.02.2021
Today is 02days past holiday
Today is 03 week of May