







![]() ![]() ![]() |
MySQL Connector/Net |
MySqlDateTime Members |
MySqlDateTime Structure Constructors Methods Operators Fields Properties See Also Send Feedback |
![]() |
The MySqlDateTime type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
MySqlDateTime(DateTime) |
Constructs a new MySqlDateTime object by using values from the given DateTime object.
|
![]() |
MySqlDateTime(String) |
Enables the contruction of a MySqlDateTime object by parsing a string.
|
![]() |
MySqlDateTime(MySqlDateTime) |
Constructs a new MySqlDateTime object by copying the current value of the given object.
|
![]() |
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 | |
---|---|---|
![]() |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetDateTime |
Returns this value as a DateTime
|
![]() |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a MySQL specific string representation of this value (Overrides ValueType..::..ToString()()()().) |
Operators
Name | Description | |
---|---|---|
![]() ![]() |
ExplicitNarrowingExplicitExplicitExplicit(MySqlDateTime to DateTime) |
Fields
Name | Description | |
---|---|---|
![]() |
TimezoneOffset |
Properties
Name | Description | |
---|---|---|
![]() |
Day |
Returns the day portion of this datetime
|
![]() |
Hour |
Returns the hour portion of this datetime
|
![]() |
IsNull |
Returns true if this datetime object has a null value
|
![]() |
IsValidDateTime |
Indicates if this object contains a value that can be represented as a DateTime
|
![]() |
Microsecond |
Returns the microseconds portion of this datetime (6 digit precision)
|
![]() |
Millisecond |
Returns the milliseconds portion of this datetime
expressed as a value between 0 and 999
|
![]() |
Minute |
Returns the minute portion of this datetime
|
![]() |
Month |
Returns the month portion of this datetime
|
![]() |
Second |
Returns the second portion of this datetime
|
![]() |
Value |
Retrieves the value of this MySqlDateTime as a DateTime object.
|
![]() |
Year |
Returns the year portion of this datetime
|