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 Sciencehttp://www.novaderm.comwjs@novaderm.com817-431-8437On 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:
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 Sciencehttp://www.novaderm.comwjs@novaderm.com817-431-8437On 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:
WCf2 and nested tags (1997)
Scoping rules in WebDNA 4.0 (2000)
YACBQ.....(Yet another checkbox question) (2000)
[shownext] support - MacOS (1997)
More Discount Pricing thoughts/efforts (1998)
Format question WC Mac f3 (1997)
Somewhat OT: IE issues (2002)
Searchable Archives (1998)
RequiredFields notes ... (1997)
Cart sweeper (2000)
Cookie setting (2003)
Signal Raised Error (1997)
New Guestbook Source (1997)
Bug alert! (1997)
SKU (1997)
PARAMETER vs. OPERATOR (was The BUG is BACK ...) (1998)
Back to Authnet with storebuilder (2003)
Updating a database once per day - An example (1998)
FW: WebDNA-Talk searchable? (1997)
[Sum] function? (1997)