Date
Stay organized with collections
Save and categorize content based on your preferences.
A date object. This is not a Datetime. It is just a date -- meaning that it refers to a non-relative date like a birthdate.
JSON representation |
{
"year": string,
"month": string,
"day": string
} |
Fields |
year |
string (Int64Value format)
REQUIRED: The year portion of the date.
|
month |
string (Int64Value format)
REQUIRED: The month portion of the date. January is 1, February is 2, and so on.
|
day |
string (Int64Value format)
REQUIRED: The day portion of the date. The first day of the month is 1.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[[["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 2024-10-16 UTC."],[[["\u003cp\u003eRepresents a date object for non-relative dates like birthdates, not a Datetime object.\u003c/p\u003e\n"],["\u003cp\u003eUses a JSON format with \u003ccode\u003eyear\u003c/code\u003e, \u003ccode\u003emonth\u003c/code\u003e, and \u003ccode\u003eday\u003c/code\u003e fields, all required and represented as strings in Int64Value format.\u003c/p\u003e\n"],["\u003cp\u003eSpecifies the month as a number (January is 1, February is 2, etc.) and the day of the month starting with 1.\u003c/p\u003e\n"]]],["The core content defines a date object, distinct from a datetime, representing a non-relative date. It is structured in JSON format with three required string fields: `year`, `month`, and `day`. `Year` denotes the year, `month` represents the month (1 for January, 2 for February, etc.), and `day` indicates the day of the month starting from 1. Each field must be in `Int64Value` format.\n"],null,["# Date\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA date object. This is not a Datetime. It is just a date -- meaning that it refers to a non-relative date like a birthdate.\n\n| JSON representation |\n|------------------------------------------------------------|\n| ``` { \"year\": string, \"month\": string, \"day\": string } ``` |\n\n| Fields ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `year` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` **REQUIRED**: The year portion of the date. |\n| `month` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` **REQUIRED**: The month portion of the date. January is 1, February is 2, and so on. |\n| `day` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` **REQUIRED**: The day portion of the date. The first day of the month is 1. |"]]