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=20 start=3D1&end=3D2][dob][/getchars][/math]
[math show=3Df]birthdateday=3D[getchars=20 start=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:

    
  1. Re: [WebDNA] Displaying age (christophe.billiottet@webdna.us 2010)
  2. Re: [WebDNA] Displaying age (Kenneth Grome 2010)
  3. [WebDNA] Displaying age (Gary Krockover 2010)
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=20 start=3D1&end=3D2][dob][/getchars][/math]
[math show=3Df]birthdateday=3D[getchars=20 start=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:

Need relative path explanation (1997) [defined]ish (1997) Re:Version 2.0 and 1.6 simultaneous (1997) Error, 101 a DNS problem ? (1997) [ot] Browser Detection (2001) [authenticate] (2002) Nesting WebDNA in JavaScript (2003) [ConvertChars] problem (1997) taxTotal, grandTotal (1997) This Code Kills My WebCatalog Dead (2003) select multiple (1997) upgrading (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) AAgghh!! Help, please. SSL strikes again. (1997) Date Help (2004) Help need to figure this out today!!! Advanced Question (2004) New Site (1998) Example Search Form (1997) Waiting Orders (2002) Summing fields (1997)