Skip to main content
Solved

Manual date before or after a timestamp

  • January 23, 2020
  • 2 replies
  • 44 views

Kim_Trager1
Forum|alt.badge.img+23

I’m trying to make a formular to that’ll use certain information if it’s after a particular time stamp. However no matter what I do I seem not not be able to figure out how get airtable to tell me if a certain date is after another.

Sofar I’ve been trying variations of the following. Possible someone has an idea to what I need to do?

IS_AFTER(DATETIME_PARSE(‘22/1/2020’, ‘DD/MM/YYYY’),{Date stamp})

Best answer by Kamille_Parks11

This is a proper formula, as in it returns 1 if the 22nd is after {Date Stamp}, and 0 if not (and #ERROR! if the date field is empty).

If you want to customize the return, wrap the formula in an IF() statement, or two IF() statements to return a blank cell if {Date Stamp} is empty like so:

IF({Date stamp}, IF(IS_AFTER(DATETIME_PARSE('22/1/2020', 'DD/MM/YYYY'),{Date stamp}), '22/1/2020 is after', '22/1/2020 is before'))

2 replies

Kamille_Parks11
Forum|alt.badge.img+27

This is a proper formula, as in it returns 1 if the 22nd is after {Date Stamp}, and 0 if not (and #ERROR! if the date field is empty).

If you want to customize the return, wrap the formula in an IF() statement, or two IF() statements to return a blank cell if {Date Stamp} is empty like so:

IF({Date stamp}, IF(IS_AFTER(DATETIME_PARSE('22/1/2020', 'DD/MM/YYYY'),{Date stamp}), '22/1/2020 is after', '22/1/2020 is before'))


Kim_Trager1
Forum|alt.badge.img+23
  • Author
  • Brainy
  • January 23, 2020

This is a proper formula, as in it returns 1 if the 22nd is after {Date Stamp}, and 0 if not (and #ERROR! if the date field is empty).

If you want to customize the return, wrap the formula in an IF() statement, or two IF() statements to return a blank cell if {Date Stamp} is empty like so:

IF({Date stamp}, IF(IS_AFTER(DATETIME_PARSE('22/1/2020', 'DD/MM/YYYY'),{Date stamp}), '22/1/2020 is after', '22/1/2020 is before'))


Thank you - it works