The SalDateTime type exposes the following members.

Constructors

  NameDescription
Public methodSalDateTime(DateTime)
Creates a new SalDateTime.
Public methodSalDateTime(Int32, Int32, Int32)
Create a new SalDateTime
Public methodSalDateTime(Int32, Int32, Int32, Int32, Int32, Int32)
Create a new SalDateTime
Public methodSalDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Create a new SalDateTime

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.

Operators

  NameDescription
Public operatorStatic memberAddition(SalDateTime, SalNumber)
+ operator for adding a SalNumber to a SalDateTime.
Public operatorStatic memberAddition(SalNumber, SalDateTime)
+ operator for adding a SalNumber to a SalDateTime.
Public operatorStatic memberEquality(DateTime, SalDateTime)
Public operatorStatic memberEquality(SalDateTime, SalDateTime)
Public operatorStatic memberEquality(SalDateTime, DateTime)
Public operatorStatic memberFalse
logical FALSE operator for boolean expressions
Public operatorStatic memberGreaterThan(DateTime, SalDateTime)
Public operatorStatic memberGreaterThan(SalDateTime, SalDateTime)
Public operatorStatic memberGreaterThan(SalDateTime, DateTime)
Public operatorStatic memberGreaterThanOrEqual(DateTime, SalDateTime)
Public operatorStatic memberGreaterThanOrEqual(SalDateTime, SalDateTime)
Public operatorStatic memberGreaterThanOrEqual(SalDateTime, DateTime)
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(DateTime to SalDateTime)
Automatic casting to SalDateTime.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(DBNull to SalDateTime)
Automatic casting from DBNull to SalDateTime.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(SalDateTime to Boolean)
Automatic casting from SalDateTime to boolean
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(SalDateTime to DateTime)
Automatic casting to native DateTime.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(SalDateTime to SalBoolean)
Automatic casting from SalDateTime to SalBoolean
Public operatorStatic memberInequality(DateTime, SalDateTime)
Public operatorStatic memberInequality(SalDateTime, SalDateTime)
Public operatorStatic memberInequality(SalDateTime, DateTime)
Public operatorStatic memberLessThan(DateTime, SalDateTime)
Public operatorStatic memberLessThan(SalDateTime, SalDateTime)
Public operatorStatic memberLessThan(SalDateTime, DateTime)
Public operatorStatic memberLessThanOrEqual(DateTime, SalDateTime)
Public operatorStatic memberLessThanOrEqual(SalDateTime, SalDateTime)
Public operatorStatic memberLessThanOrEqual(SalDateTime, DateTime)
Public operatorStatic memberLogicalNot
! boolean NOT operator
Public operatorStatic memberSubtraction(DateTime, SalDateTime)
- operator for subtracting a SalDateTime from a DateTime.
Public operatorStatic memberSubtraction(SalDateTime, SalDateTime)
- operator for subtracting a SalDateTime from a SalDateTime.
Public operatorStatic memberSubtraction(SalDateTime, SalNumber)
- operator for subtracting a SalNumber from a SalDateTime.
Public operatorStatic memberSubtraction(SalDateTime, DateTime)
- operator for subtracting a DateTime from a SalDateTime.
Public operatorStatic memberTrue
logical TRUE operator for boolean expressions

Fields

  NameDescription
Public fieldStatic memberNull

Properties

  NameDescription
Public propertyStatic memberCurrent
Returns the PC's current date/time.
Public propertyIsNull
Checks if this SalDateTime object contain a null value.
Public propertyTicks
Returns the number of ticks.
Public propertyValue
Returns the inner DateTime value

See Also