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, with a zero year
(for example, an anniversary). * A year on its own, with a zero
month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: *
google.type.TimeOfDay * google.type.DateTime *
google.protobuf.Timestamp
int
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.
This field is a member of oneof_ _day.
month
int
Month of a year. Must be from 1 to 12, or 0
to specify a year without a month and day.
This field is a member of oneof_ _month.
year
int
Year of the date. Must be from 1 to 9999, or
0 to specify a date without a year.
This field is a member of oneof_ _year.
[[["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-28 UTC."],[],[],null,["# Class Date (0.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.5 (latest)](/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.Date)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.Date) \n\n Date(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nRepresents a whole or partial calendar date, such as a birthday. The\ntime of day and time zone are either specified elsewhere or are\ninsignificant. The date is relative to the Gregorian Calendar. This\ncan represent one of the following: \\* A full date, with non-zero\nyear, month, and day values. \\* A month and day, with a zero year\n(for example, an anniversary). \\* A year on its own, with a zero\nmonth and a zero day. \\* A year and month, with a zero day (for\nexample, a credit card expiration date). Related types: \\*\ngoogle.type.TimeOfDay \\* google.type.DateTime \\*\ngoogle.protobuf.Timestamp\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]