Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
select current_date
Will return
Date ---- 2014-10-16
so is there any function or way to get the same day and month with next year, I.e
day
month
next_year_date ---- 2015-10-16
select (current_date + interval '1 year')::date next_year_date
Or
select date (now()::date + interval '1 year') next_year_date
Date/Time Functions and Operators
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.