Results 1 to 3 of 3

Thread: Convert age to date problem

  1. #1
    Join Date
    Jan 2007

    Convert age to date problem

    Is there any PHP function to convert current age to date in YYYY-MM-DD format.
    I stored the DOB in YYYY-MM-DD format and I want to run the SQLite query
    SELECT FirstName FROM mytable WHERE DOB >= $MinAge AND DOB <= '$MaxAge';

    I m using PHP with SQLITE

    I searched google to convert age to date format but could not find any function, is there anyone who can help?

  2. #2
    Join Date
    May 2004
    chennai, tamil nadu, India
    What will be the formats for $MinAge and $MaxAge ? are they integers ?
    Chris, Senior Developer, Chrisranjana.com
    Php Programmers

  3. #3
    Join Date
    Jan 2007
    Yes, like 18 to 25

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Recent Articles