www.webdeveloper.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    67

    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
    Location
    chennai, tamil nadu, India
    Posts
    420
    What will be the formats for $MinAge and $MaxAge ? are they integers ?
    Chris, Senior Developer, Chrisranjana.com
    Web developers. Php software company.

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

Thread Information

Users Browsing this Thread

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

     

Bookmarks

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