Skip to main content

DATETIME_DIFF not working

  • Sep 4, 2020 8:32 PM UTC
  • 4 replies
  • 76 views

Forum|alt.badge.img+10

Driving me crazy … why doesn’t this work? PROMOEND is a date field.

DATETIME_DIFF(TODAY(),PROMOEND,’months’)

This topic has been closed for replies.

4 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Sep 4, 2020 8:37 PM UTC

Make sure that your quotes are straight quotes instead of curly quotes. Airtable’s formula engine doesn’t recognize anything except for straight quotes.


Forum|alt.badge.img+10
  • Author
  • Known Participant
  • Sep 4, 2020 8:41 PM UTC

Make sure that your quotes are straight quotes instead of curly quotes. Airtable’s formula engine doesn’t recognize anything except for straight quotes.


Hmm, well aren’t these straight quotes … symbol under double quote on my keyboard.

DATETIME_DIFF(TODAY(),PROMOEND,’months’)


Forum|alt.badge.img+5
  • Inspiring
  • Sep 4, 2020 9:37 PM UTC

Hmm, well aren’t these straight quotes … symbol under double quote on my keyboard.

DATETIME_DIFF(TODAY(),PROMOEND,’months’)


@J_Allen, the difference is that those curly quotes are rich-text, while the straight ones are plain-text.

Big pain in the bottom, but avoided by copy/pasting from a plain-text editor like notepad. If you put it in microsoft word or something like that, the straight quotes get converted to those curly quotes.


Forum|alt.badge.img+10
  • Author
  • Known Participant
  • Sep 4, 2020 10:00 PM UTC

@J_Allen, the difference is that those curly quotes are rich-text, while the straight ones are plain-text.

Big pain in the bottom, but avoided by copy/pasting from a plain-text editor like notepad. If you put it in microsoft word or something like that, the straight quotes get converted to those curly quotes.


Thanks Kris. So I used my Mac vs iPad (the Airtable app) and though the same exact key on the keyboard was used, that worked. Perhaps a nuanced difference in iOS Safari > Airtable.com vs. macOS > Airtable app … but one would expect it would have worked.