telly Posted July 5, 2019 Report Share Posted July 5, 2019 I can't seems to get this work: Datediff(year,[@field:First_Employment],GetUTCDate()) Quote Link to comment Share on other sites More sharing options...
0 Barbie Posted July 5, 2019 Report Share Posted July 5, 2019 Hi @telly, If your field 'First_Employment' is an date/time this formula should work: Can you try this instead: CONVERT(VARCHAR(10), Datediff(year, [@field:First_Employment],GetUTCDate())) + 'years' Hope this works on your end. -Barbie Quote Link to comment Share on other sites More sharing options...
0 SunakoChan Posted July 6, 2019 Report Share Posted July 6, 2019 Hi @telly You may also refer to this article to know more about the function reference: https://howto.caspio.com/function-reference/DateDiff(datepart, startdate, enddate) Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted August 28, 2021 Report Share Posted August 28, 2021 In addition, based on the Function Reference, GetUTCDate() is not available in the Formula field. You will get an error if you apply this in the Formula field in the Table. If you are using a Calculated Field/ Calculated Value, then, the formula should work. Cheers! Quote Link to comment Share on other sites More sharing options...
Question
telly
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.