Share via


Date Class

Definition

Represents Date containing year, month, and day.

public class Date
type Date = class
Public Class Date
Inheritance
Date

Constructors

Date(DateTime)

Constructor for Date class.

Date(Int32, Int32, Int32)

Constructor for Date class.

Properties

Day

Returns the day component of the date.

Month

Returns the month component of the date.

Year

Returns the year component of the date.

Methods

Equals(Object)

Checks if the given object is same as the current object.

GetHashCode()

Returns the hash code of the current object.

ToDateTime()

Returns DateTime object describing this type.

ToString()

Readable string representation for this type.

Applies to