public sealed class Date : IMessage<Date>, IEquatable<Date>, IDeepCloneable<Date>, IBufferMessage, IMessage
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following:
A full date, with non-zero year, month, and day values
A month and day value, with a zero year, such as an anniversary
A year on its own, with zero month and day values
A year and month value, with a zero day, such as a credit card expiration
date
Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
google.protobuf.Timestamp.
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
to specify a year by itself or a year and month where the day isn't
significant.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["The `Date` class represents a calendar date, which can be a full date, a month and day, a year alone, or a year and month."],["This class supports various date formats, such as those found in birthdays, anniversaries, or credit card expiration dates, while allowing for the omission of time and timezone."],["It includes properties for `Year`, `Month`, and `Day`, as well as methods for converting to and from `DateTime` and `DateTimeOffset` objects."],["The `Date` class is part of the `Google.Type` namespace within the `Google.Api.CommonProtos.dll` assembly, implementing interfaces like `IMessage`, `IEquatable\u003cDate\u003e`, and `IDeepCloneable\u003cDate\u003e`."],["It provides methods like `Clone()`, `Equals()`, `MergeFrom()`, `WriteTo()`, and `CalculateSize()` to facilitate object manipulation, comparison, data merging, and data transfer related to dates."]]],[]]