public sealed class Date : Protobuf.IMessage<Date>, Protobuf.IBufferMessage
Represents a whole or partial calendar date, e.g. a birthday. The time of day
and time zone are either specified elsewhere or are not significant. The date
is relative to the Proleptic Gregorian Calendar. This can represent:
A full date, with non-zero year, month and day values
A month and day value, with a zero year, e.g. an anniversary
A year on its own, with zero month and day values
A year and month value, with a zero day, e.g. a credit card expiration date
Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and google.protobuf.Timestamp.
Day of month. Must be from 1 to 31 and valid for the year and month, or 0
if specifying a year by itself or a year and month where the day is not
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, or a year and month, and is relative to the Proleptic Gregorian Calendar.\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, all of which are integers and have specified ranges, and can have a value of 0 depending on if the date is complete or not.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDate\u003c/code\u003e class can be converted to and from \u003ccode\u003eDateTime\u003c/code\u003e and \u003ccode\u003eDateTimeOffset\u003c/code\u003e types, however conversion failure may occur if the date, month, or year value is out of the valid ranges.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDate\u003c/code\u003e class contains constructors for creating new instances with no values, or from other \u003ccode\u003eDate\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eThere are methods to calculate size, clone, compare, merge, and convert to various string outputs for the date instance.\u003c/p\u003e\n"]]],[],null,[]]