gorby
(Extraordinary UiPath Forum Contributor 2024)
1
こんにちは
UiPath Studio 2024.10.4Community editionのユーザです。
List<string>に下記の値が入っています。
List<string>(5) { “00:01:20”, “00:01:29”, “00:01:18”, “00:01:19”, “00:01:15” }
これを
List<TimeSpan>に簡単に変換する方法をご教示ください。
lis_TimeSpan=dt.AsEnumerable.Select(Function(c) c("Column0").ToString).ToList
に似た構文で一発変換できないでしょうか。
lrtetala
(Lakshman Reddy)
2
Hi @gorby
Can you try this
timeSpanList = originalList.Select(Function(s) TimeSpan.Parse(s)).ToList()
Regards,
system
(system)
Closed
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.