I have a timestamp field which can be in any format (yyyy-MM-dd OR yyyy/MM/dd OR yyyy-MM-dd'T'HH:mm:ss ETC..) And I have no control to change it. I want to convert the incoming timestamp as it is to string so as to validate it against a RegEx.
I can find many solutions but all have a specific date format. Can this be done in generic way?