Uipath Get Local Now And New a DateTime

2020-09-15By Target,DateTime

Preparation

Define a variable(DateTime dtmResult) that stores the result.

Get Local Now Time

Using System.DateTime.Now of vb.net,we can can get the local now time.

System.DateTime can be omitted.

Confirm the result that is outputted by 「Log Message」 activity.

New DateTime

Using System.DateTime.Now(Year, month, day, hour, minute, second) of vb.net,we can create a new time.

Confirm the result that is outputted by 「Log Message」 activity.