Learn how you can set additional field values when exporting content from Google Docs or Notion to Sanity.
Data type | Description |
---|---|
Boolean | A boolean value, i.e. true or false |
Date | A valid date as per the Date formats section below. |
DateTime | A valid date and time as per the Date formats section below. |
File | A file or a string value containing the ID of an existing asset. |
Geopoint | A latitude and longitude (and optional altitude) in https://www.w3.org/2005/Incubator/geo/Wiki/LatitudeLongitudeAltitude.html. |
Image | An image or the string value containing the ID of an existing image asset in Sanity. |
Number | A number. It can contain a sign and decimal point, e.g. 123, 123.99, -89. |
Reference | The ID of the existing item that is to be referenced. |
Slug | A valid slug, e.g. this-is-a-slug. |
String | Any string value |
Url | A valid URL, e.g. https://www.usecloudpress.com. |
Text value | Date | Explanation |
---|---|---|
2023-02-27 | Midnight (GMT) on 27 February 2023 | The date format is YYYY-MM-DD. If no time is specified, the time will be assumed to be midnight GMT. |
2023-02-27T13:45 | 1:45 PM (GMT) on 27 February 2023 | Time can be specified by appending the T specifier to the date along with the time in HH:MM format. Time is specified using a 24-hour clock. |
2023-02-27T13:45-05:00 | 1:45 PM (Eastern Standard Time/EST) on 27 February 2023 | You can add a time zone offset by adding a + or - and the offset in HH:MM. For example, -05:00 indicates https://www.timeanddate.com/time/zones/est. As another example, if you want to specify the time in https://www.timeanddate.com/time/zones/ict, you can use +07:00. |