Calculation Field "Return Value Types"

Comments

2 comments

  • Rainer Grabowski

    Hi Eduardo,

    you can show the date and use it on a calendar. It depends a bit on the format your specific date has but in generall it works like this:

    var specDate = your specific date
    moment(specDate).toDate()
    

    Depending on the format you maybe have to modify this code a bit. But do it in a fresh calculation field. A once saved calculation field keeps its format (number or sting) and this format can't be change. If you try to create in a formatted field it wouldn't work.

    Durations are numbers. If you e.g. calculate the difference between 9 am and 3.30pm you get the result 6.5 (the unit you cant set by yourself).

    Rainer

    2
    Comment actions Permalink
  • Eduardo Rocha Tavares

    Hi, Rainer

    Thanks! I really was expecting a "no, I'm sorry Eduardo, that's not possible" answer! Thanks a lot, it worked.

    Best,

    Eduardo

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk