Date conversion issue using uipath

have an example on a cascade to handle different scenarios

and feel free to adapt it to your scenario also by decomposing the LINQ to essential activities