Elapsed Days from "hard coded" date

Viewing 2 reply threads
  • Author
    Posts
  • December 18, 2013 at 9:49 AM #8319

    Chuck Brennaman
    Participant

    I would like to add a calculated field which shows the elapsed days from a specific or hard coded date and a date field in record.

    I know I can do this by adding a field to each record with that specific date but I would like to avoid that.

    I’ve tried putting the date in the calculation like ( [date field]
    – Jan 1, 2012) / 60 / 60 / 24

    I’ve also tried a ‘mm/dd/yyyy’ format.

    Any suggestions on how to do this?

    December 18, 2013 at 10:23 AM #8320

    Brendan
    Keymaster

    Hi Chuck,

    Tap Forms stores dates in Unix epoch time. Which means it’s the number of seconds elapsed from January 1, 1970 until now. Dates before that would be a negative number of seconds.

    So you would have to know the number of seconds since then to put into your formula. Either that or just use a Date field in the formula.

    December 18, 2013 at 1:18 PM #8322

    Chuck Brennaman
    Participant

    Brendan,

    Thanks for your quick response.

    I had actually thought of that but was hopeful there would be an easier way.

    I created a test form where I put in my date and then added a calculated field to show the corresponding epoch time. (It was 994525200)

Viewing 2 reply threads

You must be logged in to reply to this topic.