Forum Discussion
harryli
Helper II
4 years agohow to get the index value in the string/datetime
As the above data is one DateTime value minus another DateTime value which is the DirectQuery mode. Now, I would like to transfer it to be only minutes value, but there is a situation like the...
AlexisOlson
Super User
4 years agoTry using Duration.TotalMinutes to convert to total minutes.
To directly answer your question, you can use Duration.Hours to get the number of hours to multiply by 60, but this approach takes more steps than directly converting to minutes as I suggested above.