MySqlDateTime constructor (1 of 3)
Initializes a new instance of MySqlDateTime from a DateTime.
public MySqlDateTime(DateTime dt)
| parameter | description |
|---|---|
| dt | The DateTime whose values will be copied. |
See Also
- struct MySqlDateTime
- namespace MySqlConnector
- assembly MySqlConnector
MySqlDateTime constructor (2 of 3)
Initializes a new instance of MySqlDateTime from another MySqlDateTime.
public MySqlDateTime(MySqlDateTime other)
| parameter | description |
|---|---|
| other | The MySqlDateTime whose values will be copied. |
See Also
- struct MySqlDateTime
- namespace MySqlConnector
- assembly MySqlConnector
MySqlDateTime constructor (3 of 3)
Represents a MySQL date/time value. This type can be used to store DATETIME values such as 0000-00-00 that can be stored in MySQL (when AllowZeroDateTime is true) but can’t be stored in a DateTime value.
public MySqlDateTime(int year, int month, int day, int hour, int minute, int second,
int microsecond)
| parameter | description |
|---|---|
| year | The year. |
| month | The (one-based) month. |
| day | The (one-based) day of the month. |
| hour | The hour. |
| minute | The minute. |
| second | The second. |
| microsecond | The microsecond. |
See Also
- struct MySqlDateTime
- namespace MySqlConnector
- assembly MySqlConnector