TimeSpan

Hi, Just starting out.

Encountered these expression in RPA Developer Foundation in UiPath Academy.

Today.Subtract(Span)
where Span is a specific input date.

DateTime.Now.Substract(New.DateTime(DateTime.Now.Year, Tempdate.Month, Tempdate.Day) where Temdate is a variable

May I know why is there a need to add New.DateTime as seen in bold? Why cant it just be DateTime.Now.Substract(DateTime.Now.Year, Tempdate.Month, Tempdate.Day)??