hi I need little help in splitting the date from datetime value. Previously I was doing like this Datetime = 19/09/2022 17:44:17 date = left(Datetime, 10) = 19/09/2022
Now this is not working as Datetime = 1/2/2023 17:44:17 date = left(Datetime, 10) = 1/2/2023 1
The calculation UI has great help for building functions, I suggest maybe spending time looking at all the functions available under 'Date' as the answer was there for you to discover. There is also good help in the Blue Prism online help for Calculations and Decisions.
If you are just trying to convert a DateTime value to a Date value, you can use the ToDate() function. The ToDate() function works both with DateTime data items and Text data items (as long as the string is in the proper DateTime format).
As Michael mentioned, using the ToDate() will be your way to go. However, one of the main things to consider working with that, is that it works according to the format of date on your pc. Which means if the time on your pc is mm/dd/yyyy and the value you path to that function is dd/mm/yyyy, it will not be providing you accurate values and it might be breaking when the mm value will be more than 12 as there are only 12 months. Work with that in mind and you'll be safe to go.