Logic at system.DateTime

Hello Wonderfull people,
Just a question:

Context:
I use a variable Day_After_Tomorrow (type DateTime). Then, i want to give them a value (system.DateTime.Now…). However. i noticed that if i select Date, the phrase is correct. But, if i select Day… there is a problem. Despite both of them are properties (Date and Day) , it works just with Date.

image

image

I would really appreciated if anyone of you could help me to understand that . I am confused about how to build expressions . i dont understand the logic or steps…
Thanks in advance…

Ricchch

for exploration use one of the debug panels e.g immediate panel and play with the statements
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

grafik
So you can check, that now.Day returns todays day as an int32

1 Like

Thanks for helping @ppr
Short question:
i am testing a variable Tomorrow_Day, Type DateTime
And when using Log Message Activity To print “Tomorrow_Day.Date.Month”, the month is 7 . What should i do to get July?

Thanks

Tomorrow_Day.ToString(“MMMM”)

Thanks @ppr :handshake:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.