Time Elapsed Not Calculating

Viewing 2 reply threads
  • Author
    Posts
  • July 14, 2014 at 8:11 PM #10525

    mrbill
    Participant

    Hello- I’ve used this method before and it’s worked fine, but I can’t get it to work on another form.

    Setup:
    – Existing form that has the Date Created field (automatically populated when a record is created)
    – I added a calculation field with the following formula: ($now –
    [date created field]) / 86400

    Problem: This formula is generating a 0

    I also tried /60/60/24 (instead of 86400). Still produces a 0.

    Is this because I added after field after the record was already created?

    Any tips to get it to calculate?

    Thx!

    July 15, 2014 at 9:14 AM #10527

    Brendan
    Keymaster

    The problem is with the Date Created field. It’s sort of a special case field because it draws its value from the record itself rather than the list of values associated with the record. I just looked at the calculation code and it seems that I’m not taking into consideration the Date Created or Date Modified fields when performing calculations. That’s something I’ll have to add support for. You’ll need to use a regular Date & Time field instead of the Date Created field at the moment. Sorry about that.

    Thanks,

    Brendan

    July 15, 2014 at 9:33 AM #10528

    mrbill
    Participant

    Got it. At least I know its not something I’ve done in error. Thx for the info. I’ll just create a new field.

Viewing 2 reply threads

You must be logged in to reply to this topic.