Documentation Home
MySQL Connector/Net Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 2.6Mb
PDF (A4) - 2.6Mb
EPUB - 1.6Mb
HTML Download (TGZ) - 1.6Mb
HTML Download (Zip) - 1.6Mb


10.2.3.1 MySqlDateTime Members

MySqlDateTime overview

Public Static (Shared) Type Conversions

Public Instance Properties

DayReturns the day portion of this datetime
HourReturns the hour portion of this datetime
IsNullReturns true if this datetime object has a null value
IsValidDateTimeIndicates if this object contains a value that can be represented as a DateTime
MillisecondReturns the millisecond portion of this datetime
MinuteReturns the minute portion of this datetime
MonthReturns the month portion of this datetime
SecondReturns the second portion of this datetime
ValueAsObjectReturns the value of this field as an object
YearReturns the year portion of this datetime

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetDateTimeReturns this value as a DateTime
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToStringReturns a MySQL-specific string representation of this value.

Protected Instance Fields

classTypeThe system type represented by this value.
dbTypeThe generic dbtype of this value.
isNullIs this value null.
mySqlDbTypeThe specific MySQL db type.
mySqlTypeNameThe MySQL-specific type name of this value.
objectValue 

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.1 MySqlDateTime Explicit MySqlDateTime to DateTime Conversion

Syntax: Visual Basic

MySqlDateTime.op_Explicit(val)

Syntax: C#

public static explicit operator DateTime(
   MySqlDateTime val
);

Parameters

  • val:

Return Value

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.2 Day Property

Returns the day portion of this DateTime type.

Syntax: Visual Basic

Public Property Day As Integer

Syntax: C#

public int Day {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.3 Hour Property

Returns the hour portion of this DateTime type.

Syntax: Visual Basic

Public Property Hour As Integer

Syntax: C#

public int Hour {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.4 IsNull Property

Syntax: Visual Basic

Public Property IsNull As Boolean

Syntax: C#

public bool IsNull {get; set;}

See Also

MySql.Data.Types Namespace

10.2.3.1.5 IsValidDateTime Property

Indicates if this object contains a value that can be represented as a DateTime type.

Syntax: Visual Basic

Public ReadOnly Property IsValidDateTime As Boolean

Syntax: C#

public bool IsValidDateTime {get;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.6 Millisecond Property

Returns the millisecond portion of this DateTime type.

Syntax: Visual Basic

Public Property Millisecond As Integer

Syntax: C#

public int Millisecond {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.7 Minute Property

Returns the minute portion of this DateTime type.

Syntax: Visual Basic

Public Property Minute As Integer

Syntax: C#

public int Minute {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.8 Month Property

Returns the month portion of this DateTime type.

Syntax: Visual Basic

Public Property Month As Integer

Syntax: C#

public int Month {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.9 Second Property

Returns the second portion of this DateTime type.

Syntax: Visual Basic

Public Property Second As Integer

Syntax: C#

public int Second {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.10 Year Property

Returns the year portion of this DateTime type.

Syntax: Visual Basic

Public Property Year As Integer

Syntax: C#

public int Year {get; set;}

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.11 MySqlDateTime.GetDateTime Method

Returns this value as a DateTime type.

Syntax: Visual Basic

Public Function GetDateTime() As Date

Syntax: C#

public DateTime GetDateTime();

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace

10.2.3.1.12 MySqlDateTime.ToString Method

Returns a MySQL-specific string representation of this value.

Syntax: Visual Basic

Overrides Public Function ToString() As String

Syntax: C#

public override string ToString();

See Also

MySqlDateTime Structure, MySql.Data.Types Namespace


User Comments
Sign Up Login You must be logged in to post a comment.