Uipath get the day of week name and month name

By Target, DateTime

Preparation

Define a variable(System.Globalization.CultureInfo cInfoEn) that stores American culture.

Define a variable(int intLoopCount) that stores the number of repetition.

Get the day of the week name

Using System.DateTime.ToString(string format, IFormatProvider provider) of vb.net,we can get the day of the week name.

The first argument (format) is datetime format string. Required. format =“dddd”

The second argument (provider) is culture information.

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

Get month name

Using System.DateTime.ToString(string format, IFormatProvider provider) of vb.net,we can get month name.

The first argument (format) is datetime format string. Required. format = “MMMM”

The second argument (provider) is culture information.

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

By Target, DateTime

Posted by smallStar