how to find difference of minutes between 2 time parameter

how to find difference of minutes between 2 time parameter.

For example i have StartTime: 6:00 PM, and EndTime: 7:30PM.

  Discussion posts and replies are publicly visible

Parents
  • I usually use the below expressions:

    Expression to find the difference between time parameter

    a!localVariables(
      local!time1: time(5, 00),
      local!time2: time(10, 35),
      local!differenceInMins: todecimal(local!time2 - local!time1) * 24 * 60,
      local!differenceInMins
    )

    Expression to find the difference between date-time parameter

    a!localVariables(
      local!datetime1: datetime(2021,08,09,12,00,00),
      local!datetime2: datetime(2021,08,10,14,00,00),
      local!differenceInMins: todecimal(local!datetime2 - local!datetime1) * 24 * 60,
      local!differenceInMins
    )

Reply
  • I usually use the below expressions:

    Expression to find the difference between time parameter

    a!localVariables(
      local!time1: time(5, 00),
      local!time2: time(10, 35),
      local!differenceInMins: todecimal(local!time2 - local!time1) * 24 * 60,
      local!differenceInMins
    )

    Expression to find the difference between date-time parameter

    a!localVariables(
      local!datetime1: datetime(2021,08,09,12,00,00),
      local!datetime2: datetime(2021,08,10,14,00,00),
      local!differenceInMins: todecimal(local!datetime2 - local!datetime1) * 24 * 60,
      local!differenceInMins
    )

Children
No Data