DateDiff function
-
- Posts: 62
- Joined: Mon Dec 11, 2006 1:43 pm
- Location: U.S.A.
DateDiff function
In the report writer, how can I do a DateDiff?
For example, I want to show how old something is by doing DateDiff(Today, CreatedDateTime).
Thanks!
Sandy
For example, I want to show how old something is by doing DateDiff(Today, CreatedDateTime).
Thanks!
Sandy
DateDiff function
The following post shows how it can be achieved using the VB compatibility assembly.
http://forum.stimulsoft.com/Default.aspx?g=posts&t=194
To accomplish the same with c# and the framework the following can be used
Subtract() will return a TimeSpan object and from that you can check for days, hours, minutes, etc.
http://forum.stimulsoft.com/Default.aspx?g=posts&t=194
To accomplish the same with c# and the framework the following can be used
Code: Select all
{DateTime.Today.Subtract(CreatedDateTime).Days}
-
- Posts: 62
- Joined: Mon Dec 11, 2006 1:43 pm
- Location: U.S.A.
DateDiff function
Whew, that is a relief. My customer was really mad at me and lecturing me on how that should be an essential feature in any report writer.
It would be really nice if these DateTime functions were listed as part of the system functions you provide in the GUI.
Thanks!
Sandy
It would be really nice if these DateTime functions were listed as part of the system functions you provide in the GUI.
Thanks!
Sandy
DateDiff function
Added. Please check build from 10 April.Sandy wrote:Whew, that is a relief. My customer was really mad at me and lecturing me on how that should be an essential feature in any report writer.![]()
It would be really nice if these DateTime functions were listed as part of the system functions you provide in the GUI.
Thank you.
DateDiff function
Hi,
I'm looking for the date functions in the expression builder (specifically DateDiff) and can't find them. Do I still need to use the long method listed in this thread, or can you tell me how to access them?
Regards,
Jon.
I'm looking for the date functions in the expression builder (specifically DateDiff) and can't find them. Do I still need to use the long method listed in this thread, or can you tell me how to access them?
Regards,
Jon.
DateDiff function
Hello, Jon.
In the prerelease builds started from April, 10th the DateDiff function is available:

Thank you.
In the prerelease builds started from April, 10th the DateDiff function is available:

Thank you.
DateDiff function
thanks edward, I'll log in & get that build.