MySqlDateTime Members

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image

The MySqlDateTime type exposes the following members.

Constructors

  Name Description
Public method MySqlDateTime(DateTime)
Constructs a new MySqlDateTime object by using values from the given DateTime object.
Public method MySqlDateTime(String)
Enables the contruction of a MySqlDateTime object by parsing a string.
Public method MySqlDateTime(MySqlDateTime)
Constructs a new MySqlDateTime object by copying the current value of the given object.
Public method MySqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Constructs a new MySqlDateTime object by setting the individual time properties to the given values.

Methods

  Name Description
Public method Equals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetDateTime
Returns this value as a DateTime
Public method GetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a MySQL specific string representation of this value
(Overrides ValueType..::..ToString()()()().)

Operators

Fields

  Name Description
Public field TimezoneOffset

Properties

  Name Description
Public property Day
Returns the day portion of this datetime
Public property Hour
Returns the hour portion of this datetime
Public property IsNull
Returns true if this datetime object has a null value
Public property IsValidDateTime
Indicates if this object contains a value that can be represented as a DateTime
Public property Microsecond
Returns the microseconds portion of this datetime (6 digit precision)
Public property Millisecond
Returns the milliseconds portion of this datetime expressed as a value between 0 and 999
Public property Minute
Returns the minute portion of this datetime
Public property Month
Returns the month portion of this datetime
Public property Second
Returns the second portion of this datetime
Public property Value
Retrieves the value of this MySqlDateTime as a DateTime object.
Public property Year
Returns the year portion of this datetime

See Also