Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8530785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:19:52+00:00 2026-06-11T09:19:52+00:00

I have a formula based on a field value called TTArs (it is a

  • 0

I have a formula based on a field value called TTArs (it is a computed date/time field showing only the time, eg: 15:31, which is calculated based on other two editable date/time fields. In other words, it is the difference between the other 2 date/time fields).

The formula is something like this:

@Hour(TTArs)*60+@Minute(TTArs)

I want to calculate all the minutes in that field time displayed on that field.

The result it should be a number (I guess). I want to display it on a column in a view, but it is showing an error on that column in view:

Incorrect Data type for operator or @Function Time/Date expected.

I created a hidden field on the form where I want to store the number of minutes from the difference between the 2 date/time fields, it is computed, its name is “Untitled”.

Here’s the code

@If(text_orarezrs=null | text_oratrimrs=null; @Return(""); "");
seconds := text_orarezrs-text_oratrimrs;
minutes := @Integer(seconds/60);
output := @Text(minutes);
@SetField("Untitled";output)

text_orarezrs and text_oratrimrs are the 2 date/time fields (they are not text fields). But it doesn’t show anything on the field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:19:53+00:00Added an answer on June 11, 2026 at 9:19 am

    Florin!
    I presume that the field you want to use on the view is the one we computed in your last question? If so, please stop and think – in that formula, you created a text value, even though it is displaying a time (“hh:mm”). So you now have two options if you want to display that in a view as a number of minutes.

    1. Create a formula to take the text to the left of the “:”, convert it to a number, multiply it by 60, then take the text to the right of the “:”, convert it to a number and add it to the first number
    2. Create a formula to calculate the number of minutes from the two original date fields (which I presume have been saved in the form)

    Personally, I would do the second one of these. All you need is to check that neither field is null, then subtract one from the other, then divide by 60 (you remember that date/time – date/time always gives the answer in seconds, of course).

    Happy coding,
    Phil

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a formula based on a field value called text_TTArs ( data/time field
I have crystal reports and in formula editor, based on date. If {?PDATERANGE1} <>
In my database, I have a computed column based off of the ID field.
I have Fortran-based 3D column-major order array flattened into linear memory. What formula/algorithm can
I have a formula like this which works fine on Excel/OOCalc applications: =SUMPRODUCT(--($Panels.$A$5:$A$6999=K$80);--($Panels.$B$5:$B$6999=K$81);INDEX($Panels.$C$5:$J$6999;0;MATCH(Voc;$Panels.$C$3:$J$3;0))) Since
Say I have an entity MyEntity , and it has a formula-based property fmlaProp
I have the following formula in LaTeX, based on Fisher's Exact Test . (
I have a field that I want to compute based on a string and
i have an array of results based on calculation(with different formulae) of other array
In our current system we have a custom formula builder system which is using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.