PostgreSQL – AGE Function

In PostgreSQL, the AGE() function is used to calculate the difference between two dates or timestamps and returns the result as an interval. The interval represents the duration between the two dates in years, months, days, and fractional seconds. The basic syntax of the AGE() function is as shown below: AGE(end_date, start_date); where end_date is…