Todays date is given in 3 column want complete date in 4th column which activity I can use for it
eg: Date month year expected result
28 2 2022 28/2/2022
Welcome @satish.rathi59,
Cell A1 contains 22, B1 contains 02, and C1 contains 2022 and you want to print the full date in cell D1?
Hi @satish.rathi59
Welcome to the UiPath Community!
You can use DateTime.ParseExact method to achieve this.
- Assign
DateString = A1 + "/" + B1 + "/" + C1
(append the first three columns together) - Assign
MyDate = DateTime.ParseExact(DateString, "dd/MM/yyyy", CultureInfo.InvariantCulture)
You may choose not to add the /
character, I added it for clarity/aesthetics. Whichever date format you prefer, make sure to use that in the second argument of ParseExact.
For example, if you pass DateString
as A1 + B1 + C1
, use format ddMMyyyy
without any other characters.
Hope this helps.
Cheers.
Yes result in D1
How DateTime.ParseExact Method use.
Please help me to learn his method
Thanks for your quick reply
Yes sir I gone through but I am not getting exactly what this method says and How I implement in UI path studio
Thank you so much its working
great - kindly mark answer as solution.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.