Class DateDiff
Argument function to get the difference between two dates
Inheritance
DateDiff
Implements
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public class DateDiff : DateTimeArgumentFunction, ICloneable
Constructors
DateDiff(DatePart, Argument, Argument)
Argument function to get the difference between two dates
Declaration
public DateDiff(DateDiff.DatePart part, Argument start_date, Argument end_date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateDiff.DatePart | part | |
| Argument | start_date | |
| Argument | end_date |
Properties
LeftArg
Argument function to get the difference between two dates
Declaration
public Argument LeftArg { get; }
Property Value
| Type | Description |
|---|---|
| Argument |
Part
Argument function to get the difference between two dates
Declaration
public DateDiff.DatePart Part { get; }
Property Value
| Type | Description |
|---|---|
| DateDiff.DatePart |
RightArg
Argument function to get the difference between two dates
Declaration
public Argument RightArg { get; }
Property Value
| Type | Description |
|---|---|
| Argument |
Methods
Clone()
Creates a copy of the query elements, but shares parameter values with the original, so it is not a complete copy.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| object | Copy of all the restrictions/joins |
Overrides
Remarks
This method is used by the SentryQueryUpdater to modify a query with sentry extensions without affecting the original query.
DatePartToString(DatePart)
Argument function to get the difference between two dates
Declaration
public static string DatePartToString(DateDiff.DatePart part)
Parameters
| Type | Name | Description |
|---|---|---|
| DateDiff.DatePart | part |
Returns
| Type | Description |
|---|---|
| string |
ToString()
Argument function to get the difference between two dates
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |