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
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodGetHashCode (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.
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