How to convert from string to code

Hey @KevinDS, you can run any JavaScript function in UiPath if you want to.
For simple date and time calculations:-

  1. For date and time comparisons check these posts:-
    How to compare datetime variable (with MM/dd/yyyy hh:mm:ss format)?