Can I create function for calculate age ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Can I create function for calculate age ?

Hybrid View

  1. #1
    Matty Guest

    Can I create function for calculate age ?


    Can I create function for calculate age ?
    example
    Mr x. was born on 27/JAN/1976
    now he is 24 years 3 months and 28 days

    Thank you
    Matty

  2. #2
    dL Guest

    Re: Can I create function for calculate age ?

    Is this your high school assignment?



    Matty <yutthasak@bangkokair.co.th> wrote in message
    news:390935f4$1@news.devx.com...
    >
    > Can I create function for calculate age ?
    > example
    > Mr x. was born on 27/JAN/1976
    > now he is 24 years 3 months and 28 days
    >
    > Thank you
    > Matty




  3. #3
    Michael Cole Guest

    Re: Can I create function for calculate age ?

    Short answer:- Yes, you can.

    "Matty" <yutthasak@bangkokair.co.th> wrote in message
    news:390935f4$1@news.devx.com...
    >
    > Can I create function for calculate age ?
    > example
    > Mr x. was born on 27/JAN/1976
    > now he is 24 years 3 months and 28 days
    >
    > Thank you
    > Matty




  4. #4
    Gary Choma Guest

    Re: Can I create function for calculate age ?


    More precisely: Yes, WE can. Obviously, he can't.

    "Michael Cole" <mc@mercsys.com.au> wrote:
    >Short answer:- Yes, you can.
    >
    >"Matty" <yutthasak@bangkokair.co.th> wrote in message
    >news:390935f4$1@news.devx.com...
    >>
    >> Can I create function for calculate age ?
    >> example
    >> Mr x. was born on 27/JAN/1976
    >> now he is 24 years 3 months and 28 days
    >>
    >> Thank you
    >> Matty

    >
    >



  5. #5
    Russ Guest

    Re: Can I create function for calculate age ?


    "Gary Choma" <gchoma@invtitle.com> wrote:
    >
    >More precisely: Yes, WE can. Obviously, he can't.
    >
    >"Michael Cole" <mc@mercsys.com.au> wrote:
    >>Short answer:- Yes, you can.
    >>
    >>"Matty" <yutthasak@bangkokair.co.th> wrote in message
    >>news:390935f4$1@news.devx.com...
    >>>
    >>> Can I create function for calculate age ?
    >>> example
    >>> Mr x. was born on 27/JAN/1976
    >>> now he is 24 years 3 months and 28 days
    >>>
    >>> Thank you
    >>> Matty

    >>
    >>

    >


    Jeez guys, give the guy a break. He's obviously here looking for some help,
    not to get flamed.

    Matty,
    Take a look at the DateDiff and DateSerial functions.

    Hope this helps,
    -Russ.





  6. #6
    Douglas J. Steele Guest

    Re: Can I create function for calculate age ?

    Even better, check out the first entry in the Date/Time section of Dev
    Ashish's "The Access Web" http://www.mvps.org/access/

    --

    Doug Steele, Microsoft Access MVP
    Beer, Wine and Database Programming. What could be better?
    Visit "Doug Steele's Beer and Programming Emporium"
    http://I.Am/DougSteele/


    Russ <russell.thompson@adlink.com> wrote in message
    news:3909ae59$1@news.devx.com...
    >
    > "Gary Choma" <gchoma@invtitle.com> wrote:
    > >
    > >More precisely: Yes, WE can. Obviously, he can't.
    > >
    > >"Michael Cole" <mc@mercsys.com.au> wrote:
    > >>Short answer:- Yes, you can.
    > >>
    > >>"Matty" <yutthasak@bangkokair.co.th> wrote in message
    > >>news:390935f4$1@news.devx.com...
    > >>>
    > >>> Can I create function for calculate age ?
    > >>> example
    > >>> Mr x. was born on 27/JAN/1976
    > >>> now he is 24 years 3 months and 28 days
    > >>>
    > >>> Thank you
    > >>> Matty
    > >>
    > >>

    > >

    >
    > Jeez guys, give the guy a break. He's obviously here looking for some

    help,
    > not to get flamed.
    >
    > Matty,
    > Take a look at the DateDiff and DateSerial functions.
    >
    > Hope this helps,
    > -Russ.
    >
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center