Click or drag to resize
Datetime Methods

The Datetime type exposes the following members.

Methods
  NameDescription
Public methodClear
Sets all parts of this Datetime object to the unset state.
Public methodClone
Create a new Datetime object with the same value as this object.
Public methodEquals
Check value equality. Two values are equal if they have the same parts, and those parts have the same values. e.g. 00:00 is not equal to 00:00:00.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as the default hash function. (Inherited from Object.)
(Overrides ObjectGetHashCode.)
Public methodHasParts
Return true if this Datetime object has all of the specified parts set.
Public methodIsValid
Check whether the value of this 'Datetime' object is valid. The behaviour is undefined unless this object represents a date (has YEAR, MONTH and DAY part set) or time (has HOURS, MINUTES, SECONDS and MILLISECONDS part set).
Public methodIsValidField Obsolete.
Please use HasParts(Int32) instead.
Public methodSetDate
Sets the date portion of this Datetime object to the specified values.
Public methodSetDatetime(DateTime)
Sets the date, time and portions of this Datetime object using values from the specified System.DateTime.
Public methodSetDatetime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Sets the date, time and portions of this Datetime object to the specified values.
Public methodSetDatetimeTz
Sets the date, time and timezone offset portions of this Datetime object to the specified values.
Public methodSetDateTz
Sets the date and timezone offset portions of this Datetime object to the specified values.
Public methodSetTime
Sets the time portions of this Datetime object to the specified values.
Public methodSetTimeTz
Setsthe time and timezone offset portions of this Datetime object to the specified values.
Public methodToString
Converts the Date and Time represented by this Datetime object to String.
(Overrides ObjectToString.)
Public methodToSystemDateTime
Converts this BLP Datetime object into System.DateTime object.
Top
See Also