View Single Post
Old 06-29-2009   #1 (permalink)
HAL07


 
 

Date duration function that returns years, months, weeks and days?

Hi there, do anybody by chance have such a function laying around?

I would like to e.g. output wscript.echo "You are " & dateduration(now(), "1980.01.04", "13:42" ) & " old."

Will output:
You are 29 years, x months, x weeks, x hours and x seconds old



--
-- HAL07, Engineering Services, Norway
-- Info: social.technet.microsoft.com/Forums/ replaces a lot of the newsgroups
My System SpecsSystem Spec