You want to express an age in years given the dob (mm/dd/yyyy) and today's date.
numero = 45[date][text]dob=04/24/1964[/text][!]Separate year in the format mm/dd/YYY into component parts [/!][math show=f]birthdatemonth=[getchars start=1&end=2][dob][/getchars][/math]
[math show=f]birthdateday=[getchars start=4&end=5][dob][/getchars][/math]
[math show=f]birthdateyear=[getchars start=7][dob][/getchars][/math]
[showif [date %m]>[birthDateMonth]][math show=f]age=[date %Y]-[birthDateYear][/math][/showif][showif [date %m]<[birthDateMonth]][math show=f]age=([date %Y]-[birthDateYear])-1[/math][/showif][showif [date %m]=[birthDateMonth]][showif [date %d]=[birthDateDay]][math show=f]age=[date %Y]-[birthDateYear][/math][/showif][showif [date %d]>[birthDateDay]][math show=f]age=[date %Y]-[birthDateYear][/math][/showif][showif [date %d]<[birthDateDay]][math show=f]age=([date %Y]-[birthDateYear])-1[/math][/showif][/showif][age]
[date]
[text]dob=04/24/1964[/text]
[!]Separate year in the format mm/dd/YYY into component parts [/!]
[math show=f]birthdatemonth=[getchars
start=1&end=2][dob][/getchars][/math]
[math show=f]birthdateday=[getchars
start=4&end=5][dob][/getchars][/math]
[math show=f]birthdateyear=[getchars start=7][dob][/getchars][/math]
[showif [date %m]>[birthDateMonth]]
[math show=f]age=[date %Y]-[birthDateYear][/math]
[/showif]
[showif [date %m]<[birthDateMonth]]
[math show=f]age=([date %Y]-[birthDateYear])-1[/math]
[/showif]
[showif [date %m]=[birthDateMonth]]
[showif [date %d]=[birthDateDay]]
[math show=f]age=[date %Y]-[birthDateYear][/math]
[/showif]
[showif [date %d]>[birthDateDay]]
[math show=f]age=[date %Y]-[birthDateYear][/math]
[/showif]
[showif [date %d]<[birthDateDay]]
[math show=f]age=([date %Y]-[birthDateYear])-1[/math]
[/showif]
[/showif]
[age]
DOWNLOAD WEBDNA NOW!
A list of available libraries for WebDNA...
F.A.QA compilation of some user's questions...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
WebDNA ModulesA list of the currently available modules...
Download WebDNA ApplicationsWebDNA applications...
Tips and TricksA list of user-submitted tips ...
Often...
random password-generator codeGenerate a random alpha-numeric string...
Handling credit card numbersEncrypting the credit card numbers does the job quite nicely...
WebDNA Google Map MashupGenerate a Google map with pins on your database addresses...
Formatting a long list in a tableHow to show the result of a search as a table...
How to keep the text variable after a function has finishedBy default...