Jul 18, 2022 07:45 AM
Not sure if this is possible as I just started using Airtable.
I created a formula for contracts based on Start Dates and Contract Term that will give me an Automatic Original End Date. Then I have another Field for Bonus weeks which will give me a “Final End Date”
I am looking for a way to make the Final End Date field a Date/Time instead of a Formula field so that I can sort and group a certain way from a Date. Is this possible?
Jul 18, 2022 08:48 AM
By using DATETIME_FORMAT() you are explicitly telling Airtable to “take this date and turn it into a string”. All you need is the DATEADD() portion of your formula, use the “Formatting” tab in your field config panel to control the display order of months/days.
Jul 18, 2022 08:56 AM
As @Kamille_Parks says, just use date add and the format tab - like this:
and
You may also consider modifying the formula to remove the errors if there is no original date:
Hope this helps.
Julian
Jul 18, 2022 12:02 PM
Thank you all so much!
Apr 01, 2024 02:38 PM
Hi, if I use the IF() condition outside the DATEADD(), the formatting tab doesn't work for me.
What should be done to retain the DATETIME data type in this case?