The SalDateTime type exposes the following members.

Methods

  NameDescription
Public methodAddDays
Add days or fraction of days to the date.
Public methodStatic memberCompare
Compares two SalDateTime
Public methodCompareTo(Object)
Public methodCompareTo(SalDateTime)
Public methodDay
Returns the day portion (1 to 31) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Public methodEquals
Overrides the Object.Equals() method.
(Overrides ValueType..::..Equals(Object).)
Public methodGetHashCode
Overrides the Object.GetHashCode() method
(Overrides ValueType..::..GetHashCode()()()().)
Public methodHour
Returns the hour portion (0 to 23) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Public methodMinute
Returns the minute portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Public methodMonth
Returns the month portion (1 to 12) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Public methodMonthBegin
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.
Public methodQuarter
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.
Public methodQuarterBegin
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.
Public methodSecond
Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Public methodSubtract
Subtract SalDateTime from SalDateTime.
Public methodToDateTime
Returns the DateTime value.
Public methodToString()()()()
Converts the date/time value to a string.
(Overrides ValueType..::..ToString()()()().)
Public methodToString(String)
Converts a date/time value to a string value using the specified format string.
Public methodToString(SalString%)
Converts the date/time value to a string value.
Public methodToString(String, IFormatProvider)
Converts a date/time value to a string value.
Public methodWeekBegin
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.
Public methodWeekday
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.
Public methodYear
Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter.
Public methodYearBegin
Returns the date of the first day of the year or it returns DATETIME_Null if the value you specify is null.

See Also