Links
 
cf_age Click to Download
 
Description
A simple tag that compares the current date to a date entered and returns an age value in years, months and days since that date.
 
Usage
Add anywhere on a page where you want to display an age calculation.

This tag works out the age accurate to one day. All attributes are optional and ommiting any of these attributes will default to the current date part. There are two ways to output variables. If you set the "output" attribute to "yes", the results are printed on the page. Alternatively, you can output variables (year, month and day) anywhere on the page.
 
Attributes
Name Type Description
year Optional The datepart in years. Format must be as "yyyy"
month Optional The datepart in months. Format must be as "mm"
day Optional The datepart in days. Format must be as "dd"
output Optional Yes or No. Yes outputs the value as a string. Default is No.
cf_age.year Return A variable returned by the tag. The age in years from the specified date.
cf_age.month Return A variable returned by the tag. Part number of months since specified date.
cf_age.day Return A variable returned by the tag. Part number of days since specified date.
 
 
 
Contact Us
Tel Fax
 
Email
 
Datapartners
 
         
DP Products DP Services DP Portals


 © 2008 Datapartners. All Rights Reserved.