Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datetime()-datetime()

Status
Not open for further replies.

MrFancyteeth

Programmer
Mar 18, 2003
90
GB
morning

I'm trying to use datetime(afturedate)-datetime() to return the a 'proper' interval between the 2 date/times

currently the calculation returns the number of seconds between the 2 date/times - but I would like it to return 2 days, 4 hours, 3 minutes and 7 seconds.

I'm working on a function to convert the number of seconds to this format - What i would like to know - is there a built in Foxpro function that would do this for me? or should i persevere with my function?

mRF
 
MtFancyTeeth

SlightHaze has a suggestion in thread184-656586

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
nice thread - can't believe i missed it

still working on my own function though so i can get years,months,days etc but that's a good start

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top