E r g e b n i s / R e s u l t
Fügt eine exakte Anzahl von Jahren einem Datum hinzu
Add an exact number of years to a date
B e s c h r e i b u n g / D e s c r i p t i o n
This function takes a date and adds a number of years passed to the
function. As the function adds the value directly to the year and does
not add 365 days (or 365.25) then you can be assured that the day number
and month will stay the same.
S y n t a x
Code:
date = call ('DATEDIF4' , datefld , years) P a r a m e t e r
datefld - any Open Access date
years - an integer number of years
R e t u r n s
A date field.
B e i s p i e l / E x a m p l e
Code:
attach 'DATEDIF'
put call ('DATEDIF4' , sysdate , 1) ! prints next year's date
put call ('DATEDIF4' , sysdate , -10) ! prints the date 10 years ago
detach 'DATEDIF' Q u e r v e r w e i s / R e f e r e n c e
DATEDIF3