Format Time Span

Sukesh Kumaru

Active Member
Hello,

Just try to search for zeros in the Timespan and remove it, and make sure to find at which position it found zeros, based on this you can decide whether it is days/hours/minutes/seconds.
For Example,
0:23:10:16
In the above scenario, zero is found at position 1 means it is zero day. and second zero is at position 7 ignore it. (you should consider only 1,3,6,9)
and so on.

Good Luck.
 
Top