Replies: 1 comment 1 reply
-
There's a The input of the function is a duration. Could you try |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
I've stumbled on one issue that I couldn't solve when I tried to calculate basically datediff between current time (now()) and some DateTime object.
What I want to do is to calculate number of seconds that passed between
now()
and someDateTime
object. I've struggled with this one and the 'best' result that I was able to achieve was with this query:?$compute=cast(now() sub CreatedAt, Edm.String) as DateDiff&$select=DateDiff
and got these results:
the problem with this is that I need a number as a result that represents e.g. number of seconds/hours/days between the dates so that I could use it to divide some other number with it.
Is there a solution for this?
Beta Was this translation helpful? Give feedback.
All reactions