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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This page provides documentation for the `Date` class in the `Google.Type` namespace, representing a calendar date with year, month, and day components, which can represent a full date, a month and day, a year alone, or a year and month."],["The `Date` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `object`."],["It includes properties such as `Year`, `Month`, and `Day`, which allow for specifying different levels of detail in a date, along with constant fields like `YearFieldNumber`, `MonthFieldNumber`, and `DayFieldNumber`."],["The class has constructors to create new `Date` objects and methods for cloning, comparing, converting to and from DateTime/DateTimeOffset, and handling input/output operations through `CodedInputStream` and `CodedOutputStream`."],["The static methods `FromDateTime` and `FromDateTimeOffset` allow you to easily create a date from `DateTime` and `DateTimeOffset` objects, whereas `ToDateTime` and `ToDateTimeOffset` do the reverse."]]],[]]