Click or drag to resize
MySqlDateTime Structure
Represents a datetime data type object in a MySql database.

Namespace:  MySql.Data.Types
Assembly:  MySql.Data (in MySql.Data.dll) Version: 6.10.9
public struct MySqlDateTime : IComparable, 

The MySqlDateTime type exposes the following members.

Public methodMySqlDateTime(DateTime)
Constructs a new MySqlDateTime object by using values from the given DateTime object.
Public methodMySqlDateTime(String)
Enables the contruction of a MySqlDateTime object by parsing a string.
Public methodMySqlDateTime(MySqlDateTime)
Constructs a new MySqlDateTime object by copying the current value of the given object.
Public methodMySqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Constructs a new MySqlDateTime object by setting the individual time properties to the given values.
Public propertyDay
Returns the day portion of this datetime
Public propertyHour
Returns the hour portion of this datetime
Public propertyIsNull
Returns true if this datetime object has a null value
Public propertyIsValidDateTime
Indicates if this object contains a value that can be represented as a DateTime
Public propertyMicrosecond
Returns the microseconds portion of this datetime (6 digit precision)
Public propertyMillisecond
Returns the milliseconds portion of this datetime expressed as a value between 0 and 999
Public propertyMinute
Returns the minute portion of this datetime
Public propertyMonth
Returns the month portion of this datetime
Public propertySecond
Returns the second portion of this datetime
Public propertyValue
Retrieves the value of this MySqlDateTime as a DateTime object.
Public propertyYear
Returns the year portion of this datetime
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDateTime
Returns this value as a DateTime
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a MySQL specific string representation of this value
(Overrides ValueTypeToString.)
Public fieldTimezoneOffset
Defines whether the UTF or local timezone will be used.
See Also