[WebDNA] Dealing with age and birth day

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113536
interpreted = N
texte = 1131 This is a multi-part message in MIME format. --------------020207070600010508090609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, a new question about [date] ;-) Philosophical this time... I' m trying to calculate someone's age to see if he is old enough or not... I went through this : [text show=T]_age_max_capt=25[/text]
[text show=T]_Birth_capt=31/03/1992[/text]
[text show=T]_age_capt=[Format .4f][Math]({[date %d/%m/%Y]}-{[_Birth_capt]})/365.2422[/Math][/Format][/text]
[If ([_age_capt]<[_age_max_capt])] [Then]Under 25[/Then] [Else]over 25[/Else] [/If] This works well, but on the birthday it consider that he isn't 25 yet. What do you think about that... Should the birth day be considered as still being 24? Or should he be 25? Should I had one day in this [math]? Thanks in advance --------------020207070600010508090609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

a new question about [date] ;-) Philosophical this time...

I' m trying to calculate someone's age to see if he is old enough or not...

I went through this :

[text show=T]_age_max_capt=25[/text]<br>
[text show=T]_Birth_capt=31/03/1992[/text]<br>
[text show=T]_age_capt=[Format .4f][Math]({[date %d/%m/%Y]}-{[_Birth_capt]})/365.2422[/Math][/Format][/text]<br>

[If ([_age_capt]<[_age_max_capt])]
    [Then]Under 25[/Then]
    [Else]over 25[/Else]
[/If]


This works well, but on the birthday it consider that he isn't 25 yet.
What do you think about that... Should the birth day be considered as still being 24? Or should he be 25?
Should I had one day in this [math]?

Thanks in advance
--------------------------------------------------------- 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 Bug Reporting: support@webdna.us --------------020207070600010508090609-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Dealing with age and birth day (Lawrence Banahan 2017)
  2. Re: [WebDNA] Dealing with age and birth day (Francisco Hirsch 2017)
  3. [WebDNA] Dealing with age and birth day (Lawrence Banahan 2017)
1131 This is a multi-part message in MIME format. --------------020207070600010508090609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, a new question about [date] ;-) Philosophical this time... I' m trying to calculate someone's age to see if he is old enough or not... I went through this : [text show=T]_age_max_capt=25[/text]
[text show=T]_Birth_capt=31/03/1992[/text]
[text show=T]_age_capt=[Format .4f][math]({[date %d/%m/%Y]}-{[_Birth_capt]})/365.2422[/Math][/Format][/text]
[If ([_age_capt]<[_age_max_capt])] [Then]Under 25[/Then] [Else]over 25[/Else] [/If] This works well, but on the birthday it consider that he isn't 25 yet. What do you think about that... Should the birth day be considered as still being 24? Or should he be 25? Should I had one day in this [math]? Thanks in advance --------------020207070600010508090609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

a new question about [date] ;-) Philosophical this time...

I' m trying to calculate someone's age to see if he is old enough or not...

I went through this :

[text show=T]_age_max_capt=25[/text]<br>
[text show=T]_Birth_capt=31/03/1992[/text]<br>
[text show=T]_age_capt=[Format .4f][math]({[date %d/%m/%Y]}-{[_Birth_capt]})/365.2422[/Math][/Format][/text]<br>

[If ([_age_capt]<[_age_max_capt])]
    [Then]Under 25[/Then]
    [Else]over 25[/Else]
[/If]


This works well, but on the birthday it consider that he isn't 25 yet.
What do you think about that... Should the birth day be considered as still being 24? Or should he be 25?
Should I had one day in this [math]?

Thanks in advance
--------------------------------------------------------- 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 Bug Reporting: support@webdna.us --------------020207070600010508090609-- . Lawrence Banahan

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:

Issues with the default db files ... (2003) Weird problems with [SHOWIF]s (1997) [WebDNA] OT survey .... (2012) [WebDNA] An unknown error occured // Deadlock avoided (2011) emailer (1997) Errata: WCS Newbie question (1997) Setting up shop (1997) [SearchString] problem with [search] context (1997) Question (2000) info (1997) bug in Webcat OSX (1999) HTML encoding in URLs (1997) International Orders (1998) 2cd pare of eyes. (2001) [WebDNA] OT survey .... (2012) [WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009) NT vs Mac (1997) Yikes! Memory Error?!?! (1999) Separate SSL Server (1997) Database cloning- will the real -oRiGiNaL- please stand up (2003)