Uipath:

Uipath/Powershell 获取Split最后值

system.DateTime.ParseExact(r("Send Email Day(L1)").ToString.Split({";"}, StringSplitOptions.None).Last,"yyyy-MM-dd HH:mm:ss",Nothing)

{";"}是数组的意思

 

Uipath/Powershell 获取Split最后值

Powershell:

Uipath/Powershell 获取Split最后值

Uipath/Powershell 获取Split最后值

同理@(",")也是是数组的意思

[System.StringSplitOptions]::RemoveEmptyEntries 表示如果碰到空白的就忽略例如:$a = "1,2,,,5,6" , 中间的空白就会忽略

如果写[System.StringSplitOptions]::None 就不会忽略

 

相关文章: