Date
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
代表完整的日曆日期,例如出生日期。您可以視重要性決定是否要在別處指定時段和時區。日期以公曆為主,日期必須是 1 到 9999 之間的有效日曆日期。
JSON 表示法 |
{
"year": integer,
"month": integer,
"day": integer
} |
欄位 |
year |
integer
日期的年份。必須介於 1 到 9999 之間。
|
month |
integer
日期的月份。必須介於 1 到 12 之間。
|
day |
integer
當月第幾日。必須介於 1 到 31 之間,並屬於有效的年和月。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],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. |"]]