Help

Re: Using DATETIME_FORMAT double

665 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Frederik_van_Di
4 - Data Explorer
4 - Data Explorer

I need to use DATETIME_FORMAT two times in my IF formula, otherwise it won’t show the date correcty.

Screenshot 2021-03-17 at 13.00.58

Screenshot 2021-03-17 at 13.01.10

The current formula that I am using is:
IF({Execute day (before/after)}=BLANK(),{PROJECT DEADLINE},DATETIME_FORMAT(DATEADD({PROJECT DEADLINE},{Execute day (before/after)},‘days’),‘D-MMM-YYYY’))

Can’t figure out where I am supposed to add the first DATETIME_FORMAT formula.

Any suggestions would be much appreciated!

1 Reply 1

Hello and welcome @Frederik_van_Dierme1!

Looking at your formula I believe you are missing the DATETIME_FORMAT() for the Project deadline in the “true” evaluation of your IF() statement.

I believe the formula should look like the following:

IF(
    {Execute day (before/after)}=BLANK(),
    DATETIME_FORMAT({PROJECT DEADLINE}, ‘D-MMM-YYYY’),
    DATETIME_FORMAT(DATEADD({PROJECT DEADLINE},{Execute day (before/after)},‘days’),‘D-MMM-YYYY’)
)

Let me know if I can help provide any more information, and if this helped answer your question please mark it as the solution :white_check_mark: .