Hi @raja.arslankhan ,
You would need to use Multiple date time formats for parsing. You could check the below posts on how to use the DateTime.ParseExact()
with Multiple formats.
You could modify the DateTime.ParseExact()
in your expression accordingly