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!
BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
WebDNA ModulesA list of the currently available modules...
WebDNA reference...
WebDNA LibrariesA list of available libraries for WebDNA...
F.A.QA compilation of some user's questions...
...
Setting a 30-minute CookieConfiguring the expires time for a short-term cookie is tricky...
Removing whitespaceHow can I remove all whitespace entered by a user from an input box (ie card number)...
How old am I?You want to express an age in years given the dob (mm/dd/yyyy) and today's date...
How to setup CODA to work with WebDNA?This page will show graphically how to setup CODA as a WebDNA partner :-)...
Redefining [date] & [time] to match your time zoneYour server is not always in the same time zone as your web site...