Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Postgresql get diff between two dates in Months

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: #Postgresql #diff #dates #Months
ADD COMMENT
Topic
Name
6+8 =