Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

CALCULATING MONTHS BETWEEN TWO DATES IN POSTGRESQL

EXTRACT(year FROM age(end_date,start_date))*12 + EXTRACT(month FROM age(end_date,start_date))
Source by www.lexykassan.com #
 
PREVIOUS NEXT
Tagged: #CALCULATING #MONTHS #BETWEEN #TWO #DATES #IN #POSTGRESQL
ADD COMMENT
Topic
Name
5+5 =