Skip to main content

Need Help with 'Timing' Formula

  • December 3, 2019
  • 2 replies
  • 22 views

Forum|alt.badge.img+17

This is my formula

IF(DATETIME_DIFF(TODAY(),{purchase-date},'d')<1,DATETIME_DIFF(TODAY(),{purchase-date},'h'), DATETIME_DIFF(TODAY(),{purchase-date},'days'))

Why do I get all this results? Why is all this numbers negative?

2 replies

Forum|alt.badge.img+17
  • Author
  • Known Participant
  • December 3, 2019

I hope please someone can help me, PLEASE


Forum|alt.badge.img+4

Hi @Abraham_Bochner

Try the following:

IF(DATETIME_DIFF(NOW(),{purchase-date},‘days’)<1,DATETIME_DIFF(NOW(),{purchase-date},‘hours’), DATETIME_DIFF(NOW(),{purchase-date},‘days’))

It seems that NOW() is needed to include the time.

Hope this helps.