Thursday, March 19, 2015

PostgreSQL Calculate Age From Birthdate

There is AGE() function that performs two calculations depending of provided params:

  • It substracts date2 from date1 if two params are provided:
    --calculation: date1 - date2
    age(date1, date2)
  • It substracts date from the current date if only one param is provided:
    --calculation: current_date - date
    age(date)    
    

18 comments:

  1. Hi,

    find Age Calculator then it is Overall looking for a Chronological age or anniversary calculator then this is your best option in age Calculator.

    Age Calculator By Date Of Birth (Days, Months)
    Calculation of age with interesting details!
    If you want to know the details of your age, then install the Age Calculator

    ReplyDelete
  2. Great article! I agree on nearly every aspect of this information you have written. t's really full of useful and interesting facts that anybody can grasp. You have great insight on this topic. Thank you for making this so clear and understandable. date calculator

    ReplyDelete
  3. अपनी आयु कैसे निकाले इस पर बहुत अच्छी जानकारी बताई है!

    यदि आपको 1 सेकंड में जानना है की जन्म तारीख से उम्र कैसे निकाले? तो इस आयु कैलकुलेटर का इस्तेमाल करें।

    ReplyDelete
  4. Types of Loans Types of Loans: There are various types of loans available, including personal loan

    ReplyDelete