Insert first day of the last month and last day of the last month in a worklow (SAP)

Hi all, i’m quit new and trying to build a worklow. Please check my followin screenshot:

First I started my workflow in uipath

Now I would like to insert always the first day of the previous month and also the last day of the previous month.

image

How can I handle that? I guess I have to create some variabels in my workflow before, and insert them somehow, but I dont know how and with which acitivities. As you notice I am a bit lost.

Thank you for any help.

Best,
Markus

@Markus3003
have a look here:
grafik

2 Likes

Hi Peter,
thank you! But how can I include it in my Workflow?

image

Which activity I have to add after my last “Click” activity that it will work?

Do I have to create variables first? An then insert them in the worklow somehow?

Thank you!!

@Markus3003
define the variables (both of datatype string)
strFirstDayLMOnth
strLastDayLMonth

use an assign for setting the values e.g.
strFirstDayLMOnth = new DateTime(now.Year,now.Month, 1).AddMonths(-1).toString("dd.MM.yyyy")

strLastDayLMonth = new DateTime(now.Year,now.Month, 1).AddDays(-1).toString("dd.MM.yyyy")

for setting the dates in SAP giva try on using a Type Into activity along writing the corresponding variable e.g. strFirstDayLMOnth

3 Likes