Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Serious Mathematical Error !
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Serious Mathematical Error !

 Post Reply Post Reply
Author
keithBromley View Drop Down
Newbie
Newbie


Joined: 09 June 2009
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote keithBromley Quote  Post ReplyReply Direct Link To This Post Topic: Serious Mathematical Error !
    Posted: 13 July 2009 at 3:02pm

I looked myself up in the memberlist in v9.6 (and v9.56a)

memberlist entry for keithbromley
 
and this is what I found.
 
Real Name: Keith Bromley
Gender: Not Given
Date of Birth: 27 July 1965
Age: 44
 
44!?  I would like to point out that I'm only 43 until 27th July!
 
Yeah, I know, hardly a big issue, but some of us are sensitive about age!   ;-)
 
Best regards
Keith
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2009 at 6:22pm
It may be showing you at 44 here Keith but on our version 9.60 you are a young 43 Wink
I mean that I use version 9.60 and it correctly shows my age

Don't forget Web Wiz forums use a alpha model but 9.60 is good to go Thumbs Up as far as ages are concerned
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2009 at 9:22pm
There is a problem with the Age when your birthday is a couple of days away, as I posted the same thing about a year ago or so when I noticed it said I was older.


S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Nick-V View Drop Down
Senior Member
Senior Member


Joined: 26 October 2002
Location: United Kingdom
Status: Offline
Points: 319
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nick-V Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2009 at 9:56pm
Definately a problem. Its my birthday on Friday (address attached!) and WWF thinks I am 1 year older already. Premature...just like how it all started !
Back to Top
keithBromley View Drop Down
Newbie
Newbie


Joined: 09 June 2009
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote keithBromley Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2009 at 2:42pm
Yep - It's a problem in both 10Alpha and 9.60
 
member_profile.asp contains
 
  'Calculate the age (use months / 12 as counting years is not accurate) (use FIX to get the whole number)
  intAge = Fix(DateDiff("m", dtmDateOfBirth, now())/12)
 
...so I guess it's accurate to within 1 month...
I should have looked there first!
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2009 at 12:18am
Here's a function that will return the years accurately to the date.


     Function GetYear (dteDate)
          dim yearTemp, dteTemp
          
               yearTemp = DateDiff("yyyy",dteDate,Date())
               dteTemp = Cdate(Month(dteDate)&"/" & Day(dteDate) & "/" & Year(Date))
               if dteTemp > Date() then
                    yearTemp = yearTemp - 1
               end if
               GetYear = yearTemp
     End Function


If you add the function above to
functions/functions_common.asp
and replace

intAge = Fix(DateDiff("m", dtmDateOfBirth, now())/12)

with

intAge = GetYear(dtmDateOfBirth)

then it will be completely accurate.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.