Re: How old am I?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59928
interpreted = N
texte = Thanks, that works. If anyone wants to cut and paste a widget, this one will produce the age for a given birthdate: [!]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] Regards, Will Starck -- NovaDerm Skincare Science http://www.novaderm.com wjs@novaderm.com 817-431-8437 On Sun, 07 Nov 2004 14:07:53 -0600, eLists wrote: > [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] > [text show=f]birthdayMsg=Happy Birthday to Me![/text] > [math show=f]BirthdayToday=1[/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] > [text]birthdayMsg=Wish me a Happy Birthday in > [math][birthDateDay]-[date %d][/math] days![/text] > [/showif] > [/showif] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: How old am I? ( Donovan Brooke 2004)
  2. Re: How old am I? ( "Chris List Recipient" 2004)
  3. Re: How old am I? ( Gary Krockover 2004)
  4. Re: How old am I? ( WJ Starck 2004)
  5. Re: How old am I? ( Gary Krockover 2004)
  6. Re: How old am I? ( WJ Starck 2004)
  7. Re: How old am I? ( eLists 2004)
  8. How old am I? ( WJ Starck 2004)
Thanks, that works. If anyone wants to cut and paste a widget, this one will produce the age for a given birthdate: [!]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] Regards, Will Starck -- NovaDerm Skincare Science http://www.novaderm.com wjs@novaderm.com 817-431-8437 On Sun, 07 Nov 2004 14:07:53 -0600, eLists wrote: > [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] > [text show=f]birthdayMsg=Happy Birthday to Me![/text] > [math show=f]BirthdayToday=1[/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] > [text]birthdayMsg=Wish me a Happy Birthday in > [math][birthDateDay]-[date %d][/math] days![/text] > [/showif] > [/showif] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ WJ Starck

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:

Date format problems (1997) WC Database Format (1997) The Top Ten (2002) shipcost (1997) TCP Connect (1999) RE: Tax and ShipCost Problem (1997) Non-Cart Files in Shopping Cart Folder (1997) Potential Conflicts? (1997) [OT] Appropriate Signature??? (2003) template includes encrypted template (1999) Country & Ship-to address & other fields ? (1997) windows file upload = weirdness (2004) feature request-- [epoch] (2004) Prevent multiple appends with Reload Button (1997) This might sound silly... (2000) [SearchString] usage (1997) Max DB Size (2004) WebCat2b15MacPlugin - [protect] (1997) [WebDNA] Libmysql.dll error (2009) Pixel parameters (2000)