OCLOperators strToTime
Created by Stephanie on 2025-01-09 · Last edited by Sandra.akech on 2026-02-16.
strToTime converts a string into a TimeSpan value using the CLR's TimeSpan.Parse() method.
Syntax
strToTime() : TimeSpanUse strToTime when a duration or time-span value is stored as a String and needs to be converted to a typed TimeSpan for use in time arithmetic, comparisons, or as input to sumTime.
Examples
Expression
'08:30:00'.strToTime()Result:
08:30:00