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."],[[["\u003cp\u003eThe \u003ccode\u003eDate\u003c/code\u003e class represents a calendar date, which can be a full date, a month and day, a year alone, or a year and month.\u003c/p\u003e\n"],["\u003cp\u003eThis 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.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for \u003ccode\u003eYear\u003c/code\u003e, \u003ccode\u003eMonth\u003c/code\u003e, and \u003ccode\u003eDay\u003c/code\u003e, as well as methods for converting to and from \u003ccode\u003eDateTime\u003c/code\u003e and \u003ccode\u003eDateTimeOffset\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDate\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Type\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Api.CommonProtos.dll\u003c/code\u003e assembly, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<Date>\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable<Date>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003eClone()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, \u003ccode\u003eMergeFrom()\u003c/code\u003e, \u003ccode\u003eWriteTo()\u003c/code\u003e, and \u003ccode\u003eCalculateSize()\u003c/code\u003e to facilitate object manipulation, comparison, data merging, and data transfer related to dates.\u003c/p\u003e\n"]]],[],null,[]]