{"__v":3,"_id":"5514597ce74c1c2300f9b34e","category":{"__v":1,"_id":"5514597be74c1c2300f9b342","pages":["5514597ce74c1c2300f9b34d","5514597ce74c1c2300f9b34e","5514597ce74c1c2300f9b34f","5514597ce74c1c2300f9b350","5514597ce74c1c2300f9b351","5514597ce74c1c2300f9b352","5514597ce74c1c2300f9b353","5514597ce74c1c2300f9b354","5514597ce74c1c2300f9b355","5514597ce74c1c2300f9b356"],"project":"54424ec108d2440800d6d02f","version":"5514597be74c1c2300f9b33e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-12T05:09:16.836Z","from_sync":false,"order":6,"slug":"data-types","title":"Data Types"},"parentDoc":null,"project":"54424ec108d2440800d6d02f","user":"5424edfd1972e21d7dae4e99","version":{"__v":5,"_id":"5514597be74c1c2300f9b33e","forked_from":"54424efc08d2440800d6d036","project":"54424ec108d2440800d6d02f","createdAt":"2015-03-26T19:09:47.065Z","releaseDate":"2015-03-26T19:09:47.065Z","categories":["5514597be74c1c2300f9b33f","5514597be74c1c2300f9b340","5514597be74c1c2300f9b341","5514597be74c1c2300f9b342","5514597be74c1c2300f9b343","56bacaf4b77e261700bc1533","56bacb1e4aa5930d00da77d6","56bacb4cb77e261700bc1535","56bacc465d0f400d00ac80e5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-12T05:30:35.655Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"never","params":[],"url":""},"isReference":false,"order":1,"body":"Crunchbase's Dates are somewhat more complex than a typical Date object.\n\nIn some contexts, Crunchbase allows users to enter only *part* of a date. For example, when a user creates or edits a [Person](doc:person), (s)he can set the \"deceased\" date to a year, omitting the month and day.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/9Npsl7ZgTWM9xnnN0X4Q_Screenshot%202015-03-26%2012.18.17.png\",\n        \"Screenshot 2015-03-26 12.18.17.png\",\n        \"1282\",\n        \"1154\",\n        \"#2c94a4\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nIn the above example, a user has entered the date on which Steve Jobs died as simply \"2011\". We store (and return) this date as \"January 1, 2011\", but we also store the fact that the user only entered the year.\n\nWe annotate this date with what we call a \"[TrustCode](doc:trust-code)\". Our Date [TrustCode](doc:trust-code)s tell API users which parts of the [Date](doc:date) object can be \"trusted\" (e.g., which parts of the date were populated by a contributor or data partner and which parts are simply placeholders).","excerpt":"","slug":"date","type":"basic","title":"Date"}
Crunchbase's Dates are somewhat more complex than a typical Date object. In some contexts, Crunchbase allows users to enter only *part* of a date. For example, when a user creates or edits a [Person](doc:person), (s)he can set the "deceased" date to a year, omitting the month and day. [block:image] { "images": [ { "image": [ "https://files.readme.io/9Npsl7ZgTWM9xnnN0X4Q_Screenshot%202015-03-26%2012.18.17.png", "Screenshot 2015-03-26 12.18.17.png", "1282", "1154", "#2c94a4", "" ] } ] } [/block] In the above example, a user has entered the date on which Steve Jobs died as simply "2011". We store (and return) this date as "January 1, 2011", but we also store the fact that the user only entered the year. We annotate this date with what we call a "[TrustCode](doc:trust-code)". Our Date [TrustCode](doc:trust-code)s tell API users which parts of the [Date](doc:date) object can be "trusted" (e.g., which parts of the date were populated by a contributor or data partner and which parts are simply placeholders).