Hello. Is there a way to change the default UIPath environment settings for dates? It defaults to month/day. I want to be able to change it to day/month.
Thanks
Hello. Is there a way to change the default UIPath environment settings for dates? It defaults to month/day. I want to be able to change it to day/month.
Thanks
Try like this: Now.toString(“dd/MM”)
Thanks for the reply. My problem is I have a date in the format dd/mm/yyyy, 08/11/2018. I want to add 7 days to the date. So I have a variable MyDate set to 08/11/2018. I have an Assign component where I assign MyNewDate = MyDate.AddDays(7). This is returning 08/18/2018 instead of 15/08/2018. How can I fix this?
Here, MyDate is of type Date or string variable ?
Both variables are of DateTime
Then it will add days to Days but not month. Could you please share your workflow file with me.
Will check and update you.
Use MyDate.AddDays(7).ToString(“dd/MM”)
Main.xaml (10.5 KB)
Attached is what I’m trying to do. Thanks for your help.
How can it return 15/08/2018
Can you try this
(DateTime.ParseExact(“08/11/2018”,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddDays(7))
Thank you! That has sorted it out for me
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.