Michael,
Forget all the versions of code posted to convert seconds to a string. This is much faster and easier:
set hours to 24
lnSeconds = ltTwo - ltOne && difference your two datetimes
lcHHMMSS = ttoc( {^1999-1-1 0:0:0} + lnSeconds, 2 ) && convert to string
Also, click the Computer icon and put your signature in there and you won't have to type it each time.
>Hi,
>My query is how to work with times in vfp.
>I want to subtract one time from another to get a time difference in hh:mm:ss. For example 10:35:21-05:35:20=05:00:01
>Is this possible?