Date
Stay organized with collections
Save and categorize content based on your preferences.
Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The date must be a valid calendar date between the year 1 and 9999.
JSON representation |
{
"year": integer,
"month": integer,
"day": integer
} |
Fields |
year |
integer
Year of date. Must be from 1 to 9999.
|
month |
integer
Month of date. Must be from 1 to 12.
|
day |
integer
Day of month. Must be from 1 to 31 and valid for the year and month.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-24 UTC.
[null,null,["Last updated 2025-03-24 UTC."],[],[],null,["# Date\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.\n\n| JSON representation |\n|---------------------------------------------------------------|\n| ``` { \"year\": integer, \"month\": integer, \"day\": integer } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------|\n| `year` | `integer` Year of date. Must be from 1 to 9999. |\n| `month` | `integer` Month of date. Must be from 1 to 12. |\n| `day` | `integer` Day of month. Must be from 1 to 31 and valid for the year and month. |"]]