DateOnly Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents dates with values ranging from January 1, 0001 Anno Domini (Common Era) through December 31, 9999 A.D. (C.E.) in the Gregorian calendar.
public value class DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, IParsable<DateOnly>, ISpanFormattable, ISpanParsable<DateOnly>, IUtf8SpanFormattable
public value class DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, ISpanFormattable
public value class DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, IParsable<DateOnly>, ISpanFormattable, ISpanParsable<DateOnly>
public readonly struct DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, IParsable<DateOnly>, ISpanFormattable, ISpanParsable<DateOnly>, IUtf8SpanFormattable
public readonly struct DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, ISpanFormattable
public readonly struct DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>, IParsable<DateOnly>, ISpanFormattable, ISpanParsable<DateOnly>
type DateOnly = struct
interface IFormattable
interface IParsable<DateOnly>
interface ISpanFormattable
interface ISpanParsable<DateOnly>
interface IUtf8SpanFormattable
type DateOnly = struct
interface ISpanFormattable
interface IFormattable
type DateOnly = struct
interface IFormattable
interface IParsable<DateOnly>
interface ISpanFormattable
interface ISpanParsable<DateOnly>
Public Structure DateOnly
Implements IComparable, IComparable(Of DateOnly), IEquatable(Of DateOnly), IParsable(Of DateOnly), ISpanFormattable, ISpanParsable(Of DateOnly), IUtf8SpanFormattable
Public Structure DateOnly
Implements IComparable, IComparable(Of DateOnly), IEquatable(Of DateOnly), ISpanFormattable
Public Structure DateOnly
Implements IComparable, IComparable(Of DateOnly), IEquatable(Of DateOnly), IParsable(Of DateOnly), ISpanFormattable, ISpanParsable(Of DateOnly)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| DateOnly(Int32, Int32, Int32, Calendar) |
Creates a new instance of the DateOnly structure to the specified year, month, and day for the specified calendar. |
| DateOnly(Int32, Int32, Int32) |
Creates a new instance of the DateOnly structure to the specified year, month, and day. |
Properties
| Name | Description |
|---|---|
| Day |
Gets the day component of the date represented by this instance. |