Re: [WebDNA] Displaying age
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104399
interpreted = N
texte = Hi Gary! here a snippet from Will- chris[date][text]dob=3D04/24/1964[/text][!]Separate year in the format mm/dd/YYY into component parts [/!][math show=3Df]birthdatemonth=3D[getchars=20start=3D1&end=3D2][dob][/getchars][/math]
[math show=3Df]birthdateday=3D[getchars=20start=3D4&end=3D5][dob][/getchars][/math]
[math show=3Df]birthdateyear=3D[getchars =start=3D7][dob][/getchars][/math]
[showif [date %m]>[birthDateMonth]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %m]<[birthDateMonth]][math show=3Df]age=3D([date %Y]-[birthDateYear])-1[/math][/showif][showif [date %m]=3D[birthDateMonth]][showif [date %d]=3D[birthDateDay]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %d]>[birthDateDay]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %d]<[birthDateDay]][math show=3Df]age=3D([date =%Y]-[birthDateYear])-1[/math][/showif][/showif][age]On Jan 12, 2010, at 17:00, Gary Krockover wrote:> Hey guys - I'm still around, just not as active on list lately.>=20> At any rate, does anybody have a quick snippet that would return a =persons age if given these data fields:>=20> MEMBER_BIRTH_YEARMEMBER_BIRTH_MONTHMEMBER_BIRTH_DAY>=20> With values such as 1964, 4, 24>=20> Thanks in advance,> Gary>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
Associated Messages, from the most recent to the oldest:
Hi Gary! here a snippet from Will- chris[date][text]dob=3D04/24/1964[/text][!]Separate year in the format mm/dd/YYY into component parts [/!][math show=3Df]birthdatemonth=3D[getchars=20start=3D1&end=3D2][dob][/getchars][/math]
[math show=3Df]birthdateday=3D[getchars=20start=3D4&end=3D5][dob][/getchars][/math]
[math show=3Df]birthdateyear=3D[getchars =start=3D7][dob][/getchars][/math]
[showif [date %m]>[birthDateMonth]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %m]<[birthDateMonth]][math show=3Df]age=3D([date %Y]-[birthDateYear])-1[/math][/showif][showif [date %m]=3D[birthDateMonth]][showif [date %d]=3D[birthDateDay]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %d]>[birthDateDay]][math show=3Df]age=3D[date %Y]-[birthDateYear][/math][/showif][showif [date %d]<[birthDateDay]][math show=3Df]age=3D([date =%Y]-[birthDateYear])-1[/math][/showif][/showif][age]On Jan 12, 2010, at 17:00, Gary Krockover wrote:> Hey guys - I'm still around, just not as active on list lately.>=20> At any rate, does anybody have a quick snippet that would return a =persons age if given these data fields:>=20> MEMBER_BIRTH_YEARMEMBER_BIRTH_MONTHMEMBER_BIRTH_DAY>=20> With values such as 1964, 4, 24>=20> Thanks in advance,> Gary>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
christophe.billiottet@webdna.us
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
DDEConnect not working (2006)
Lost Records in Database (2001)
M$loth messes with our sites (again) 2004/02/03 (2004)
[WebDNA] unique words (2009)
Upgrading old WebCat Database Files (1997)
Further on formula.db failure to calculate shipCost (1997)
list items (1998)
webcatalog plugin bug - webstar refusing connections (1999)
OT: Version Control (2007)
filemaker - orderfile (1997)
Search/sort in URL Was: GuestBook example (1997)
Progress (database system) (2003)
taxRate is fine but taxTotal isn't (1997)
Queertrons? (1997)
[WebDNA] Help with Tables (2008)
AppleScript: Tell application:app location? (1998)
WebCatalog/Mac 2.1b2 New Features (1997)
Help! WebCat2 bug (1997)
Make sure I understand this??? (1997)
Logging users (1998)