Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Null value in a date calculation field

Featured Replies

I created a date calculation field to track changes to another field with the following calculation:

If (IsEmpty(Status),"",Status(CurrentDate))

This works, except that when the Status field is null, the calculated date field contains a question mark.

Is there any way I can just set the date field to null (i.e. no value)?

Thanks, Kay

If (IsEmpty(Status),"",Status(CurrentDate))

If(IsEmpty(Status), 0,Status(CurrentDate))

You need to make your result Text Also.

I prefer a Case Statement over the If for two reasons.

I can read them and write them easier.

c_Status

How about:

Case(not IsEmpty(Status), Status(CurrentDate))

This leaves the field blank when status is empty.

Oops, good catch Ender,

My eyes are playing tricks on me again. I could have sworn that Kay ask how to display a 0 instead of a "?" mark, else I would have left the stupid 0 out of the calculations in the first place and just amended hers.

Using the Calculation provided by Ender, you can leave the field a date.

in order to leave the field a Date with the If Statement, you would have to alter it like this:

If(not IsEmpty(Status), Status(CurrentDate), TextToDate(""))

Lee

frown.gif

  • Author

Thanks, folks. The TextToDate("") did the trick and allowed me to both leave the field as a date type and reset the field to null.

Kay

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.