Function todays

sna

Member
Anybody tried function ToDays ( conversion)
What is this used for and how to write expression in it?
 

Shweta

Active Member
Attached screenshot shows, what this is used for.

In TimeSpan, you can pass the variable in which you are storing the your TimeSpan data and click on Paste, and store the result.
 

Attachments

  • ToDays function detail.PNG
    6.2 KB · Views: 17

sna

Member
So when i put value 8 in timespan and paste it gives back value 8 as result..i dnt understand exactly what timespan is converting to .
If i use tohours and put value 8 it considers 8 as days and convert 8 days into hour
In function ToDays it considers 8 as day and give result as 8 ..
i dnt understand what is the use of this function..
 

sivagelli

Well-Known Member
ToDays() is a conversion function. This converts TimeSpan to days.

Lets say you want to know the no. of days between two dates 26/5/2018 and 26/5/2011. In such case this function can help you. In the expression of ToDays(), have the below -

ToDays(MakeDate(26,5,2018) - MakeDate(29,5,2011)) will give you 2554 days.
 
Top