Date
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 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["The JSON object represents a full calendar date, like a birth date, using the Proleptic Gregorian Calendar."],["The date must be a valid calendar date with a year between 1 and 9999, inclusive."],["The JSON object includes three fields: `year`, `month`, and `day`, representing the integer values for the year, month, and day of the date."],["`year` must be between 1 and 9999, `month` between 1 and 12, and `day` must be valid for the specified year and month, ranging from 1 to 31."]]],[]]