The SalDateTime type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SalDateTime(DateTime) |
Creates a new SalDateTime.
| |
SalDateTime(Int32, Int32, Int32) |
Create a new SalDateTime
| |
SalDateTime(Int32, Int32, Int32, Int32, Int32, Int32) |
Create a new SalDateTime
| |
SalDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Create a new SalDateTime
|
Methods
Name | Description | |
---|---|---|
AddDays |
Add days or fraction of days to the date.
| |
Compare |
Compares two SalDateTime
| |
CompareTo(Object) | ||
CompareTo(SalDateTime) | ||
Day |
Returns the day portion (1 to 31) of a date/time value or returns -1 if you specify
DATETIME_Null as a parameter.
| |
Equals |
Overrides the Object.Equals() method.
(Overrides ValueType..::..Equals(Object).) | |
GetHashCode |
Overrides the Object.GetHashCode() method
(Overrides ValueType..::..GetHashCode()()()().) | |
Hour |
Returns the hour portion (0 to 23) of a date/time value or returns -1 if you specify
DATETIME_Null as a parameter.
| |
Minute |
Returns the minute portion (0 to 59) of a date/time value or returns -1 if you specify
DATETIME_Null as a parameter.
| |
Month |
Returns the month portion (1 to 12) of a date/time value or returns -1 if you specify
DATETIME_Null as a parameter.
| |
MonthBegin |
Returns the date of the first day of the month or it returns DATETIME_Null if the
value you specify is null. For example, if dtDateTime is December 25, 1992, SalDateMonthBegin
returns December 1, 1992.
| |
Quarter |
Returns the quarter of the year (1 to 4) of a date/time value or returns -1 if you
specify DATETIME_Null as a parameter.
| |
QuarterBegin |
Returns the date of the first day of the quarter of a date/time value or it returns
DATETIME_Null if the value you specify is null.
| |
Second |
Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify
DATETIME_Null as a parameter.
| |
Subtract |
Subtract SalDateTime from SalDateTime.
| |
ToDateTime |
Returns the DateTime value.
| |
ToString()()()() |
Converts the date/time value to a string.
(Overrides ValueType..::..ToString()()()().) | |
ToString(String) |
Converts a date/time value to a string value using the specified format string.
| |
ToString(SalString%) |
Converts the date/time value to a string value.
| |
ToString(String, IFormatProvider) |
Converts a date/time value to a string value.
| |
WeekBegin |
Returns the date of the previous Monday or the current day if it is a Monday or it
returns DATETIME_Null if the value you specify is null.
| |
Weekday |
Returns the day of the week as a number between 0 and 6 or returns -1 if you specify
DATETIME_Null as a parameter. 0 represents Saturday, 1 represents Sunday, and
so on.
| |
Year |
Returns the year portion of a date or returns -1 if you specify DATETIME_Null as
a parameter.
| |
YearBegin |
Returns the date of the first day of the year or it returns DATETIME_Null if the
value you specify is null.
|
Operators
Fields
Name | Description | |
---|---|---|
Null |
Properties
Name | Description | |
---|---|---|
Current |
Returns the PC's current date/time.
| |
IsNull |
Checks if this SalDateTime object contain a null value.
| |
Ticks |
Returns the number of ticks.
| |
Value |
Returns the inner DateTime value
|