Time Calculation

Hello Community!

I calculated 2 vars type of DateTime into a var called SavedTime “var type is String”.

Now I have 2 variables, First one is SavedTime, and the second one is Type of Int called CostPerHour.
The values are:
SavedTime = 05:30:00
CostPerHour = 20

How can I do that:
SavedTime * CostPerHour

Thanks a lot

Hi @Tarek_Kariish ,

Try the following:

TimeSpan.Parse("05:00:00").TotalHours*20

Regards,

works! great mate, thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.