var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
I have 2 dates (eg 01/01/2000 and 06/06/2002) and by subtracting the first date from the second date require the answer in years and months only (eg 2 years and 6 months). Does anyone know of a good way to do this.
a bit odd, but should do the trick
dim totalmonths as integer
dim months as integer
dim years as integer
'time difference in months
'that makes in whole years
years=totalmonths / 12
'and the remaining months
months=totalmonths mod 12
note: this will result in 2 years and 5 months as it's not full 6 months (the 6th month has started but it's not yet finished).
Log in with your username and password
Forgot your password?
Subscribe to dBforums Brief to receive special offers from dBforums partners and sponsors