Practice 2 - Lists & DateTimes and DateTimes in general

Hello, I’m doing uipath developer foundation course, I understand completely all subjects given about uipath so far except for some functions, specifically , dateTimes functions.

In exercises from video demonstration or practices, a lot of functions are applied, so, I annotate those functions to review it later. My problem is with DateTime functions, there are so many functions and I dont get it entirely.

I’m writing this post after doing Practice 2 - Lists &DateTimes because without those functions I was totally lost.

DateTime function Examples:

-DateTime.ParseExact(InputDate, “dd.MM.yyyy”, nothing) where “InputDate” is a varible, but I dont know what is “nothing”.

-TimeSpan variable type

-Datetime.Now.Subtract(new DateTime(Datetime.Now.Year, TmpDate.Month, TmpDate.Day))

Subtract is for calculating the difference between of days.

“New datetime” is for creating a new date, just as New list…(I guess)

“Datetime.Now.Year” Datetime is a variable, but Now.Year I guess is for identifying the current Year.
“TmpDate.Month” TmpDate is a variable, and .Month I guess is for identifying variable’s month.
“TmpDate.day” Same as .month

My query is, how can I learn those functions beforehand? those functions were totally unknown to me before that exercise, so I couldn’t do it by myself

1 Like

Hey @AlvaroHG,

Nice to see you undergoing UiPath training

Yep, you can learn those things by practice. That’s why academy has challenges in between chapters.

You can also try learning from various sources, one of it is

Thanks :slight_smile:

1 Like

yeah, it’s a way to learn new things, I know, but i wanted to do it first instead of think “Oh shit, i don’t know how to do this exercise”.

I going to check that website, thanks.

1 Like