Hi,
How to get start and end date of every current week
Ex: This week start date is 22/01/2023 end date is 29/01/2022
Can some one help me on this.
Regards,
Hima
Hi,
How to get start and end date of every current week
Ex: This week start date is 22/01/2023 end date is 29/01/2022
Can some one help me on this.
Regards,
Hima
Hi @thima
dayOfWeek = Cint(DateTime.Today.DayOfWeek) startOfWeek = DateTime.Today.AddDays(-1 * dayOfWeek). Tostring (“dd/MM/yyyy”)
endOfWeek = DateTime.Today.AddDays(7 - dayOfWeek).AddSeconds(-1).Tostring (“dd/MM/yyyy”)
Hello @thima ,
Please check the Modify Date activity (more info here: https://docs.uipath.com/activities/docs/modify-date
It allows to format a date as per your requirements:
Hope it helps!
Best regards,
Marius