Nov 09, 2020 01:46 AM
hello,
I have a DATE column and would like to display date+45 days in another column. How to do that? I believe it has something with dateadd but don’t know how to use it properly
Nov 09, 2020 04:01 AM
Hi @Michal_Kuczma,
You are correct, this can be done with DATEADD()
. The syntax looks like this:
DATEADD( {DATE}, 45, 'days')
Also make sure the formatting is consistent on both fields. Hope that helps!
Nov 09, 2020 04:52 AM
but how to incorporate column name with date field here?
Nov 09, 2020 04:56 AM
Replace {DATE} in this formula with your own date field.
Nov 09, 2020 05:18 AM
not working
DATEADD( {{column-name}DATE}, 45, ‘days’)
Nov 09, 2020 05:25 AM
DATEADD( {column-name}, 45, ‘days’)
Nov 09, 2020 05:55 AM
DATEADD( {column-name}, 45, ‘days’) - invalid formula. Could you first try if its actually working? :winking_face:
Nov 09, 2020 05:59 AM
The formatting of the apostrophes might have gotten messed up here. Try copying this: 'days'
(instead of ‘days’
)
Nov 09, 2020 06:52 AM
OK its working now;) Thanks a ton
I try to customize the output to get only date without time in the format D/M/YYYY
DATEADD( {column-name}, 45, ‘days’, ‘D/M/YYYY’) does not seem to work properly