Uipath Convert date to String

2020-09-15By Target,DateTime


Define a variable that stroes the converted string as result.

Convert to String

Using DateTime.ToString(string format) of vb.net,we can convert a date to a string.

The first argument( format ) is Conversion format string.

Conversion Format mean
yyyy 4-digit year
yy 2-digit year with zero padding
MM 2-digit month with zero padding
dd 2-digit day with zero padding
HH 2-digit hour with zero padding(24-hour clock)
hh 2-digit hour with zero padding(12-hour clock)
mm 2-digit minute with zero padding
ss 2-digit second with zero padding

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