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 the currently available modules...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Download WebDNA ApplicationsWebDNA applications...
Tips and TricksA list of user-submitted tips ...
[biotype]BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
Generate a Google map with pins on your database addresses...
Extracting the first sentence out of a block of textI need to extract the first sentence out of a block of text...
ImageMagickUse ImageMagick to manipulate images when you upload them...
Cloning a RecordOften...
Check the Federal Government's Social Security databaseThe script on the page will check the federal government's social security database...
Using a simple Array of Variables with [interpret]The [interpret] context is very powerful command in the hands of a skilled WebDNA programmer...