| GrapeCity.CalcEngine Namespace > CalcConvert Class : ToTimeSpan Method | 
'Usage Dim value As Object Dim value As TimeSpan value = CalcConvert.ToTimeSpan(value)
| Exception | Description | 
|---|---|
| System.InvalidCastException | Can not convert value to System.TimeSpan | 
Target Platforms: Windows Server 2012, Windows RT