Skip to Main Content
Search this site:
Sheetal Nepte Hajare
Profile
Technology
Testimonial
Blog
Contact
Home
»
Blogs
»
sheetal's blog
Recent blog posts
How to enable Multilingual functionality in drupal
How to install asterisk server on ubuntu using apt-get
Search text in files in linux
A simple Pagination function in PHP
Truncating the text
Find the Age?
User defined xml reponse in drupal 6 webservices
Request webservices in drupal 6
Creating your own Webservices with drupal 6
Validate remote url using javascript
more
Find the Age?
Posted Mon, 05/31/2010 - 21:07 by sheetal
In php, you can use the following script to find the age. $age = floor((time() - strtotime($dob))/31556926); where $dob is date in any format.
sheetal's blog
Comments
Post new comment
Your name:
E-mail:
The content of this field is kept private and will not be shown publicly.
Homepage:
Comment:
*
Web page addresses and e-mail addresses turn into links automatically.
Lines and paragraphs break automatically.
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
More information about formatting options
Comments
Post new comment