{"_id":"5514597ce74c1c2300f9b352","project":"54424ec108d2440800d6d02f","user":"5424edfd1972e21d7dae4e99","version":{"_id":"5514597be74c1c2300f9b33e","forked_from":"54424efc08d2440800d6d036","project":"54424ec108d2440800d6d02f","__v":5,"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"},"parentDoc":null,"category":{"_id":"5514597be74c1c2300f9b342","pages":["5514597ce74c1c2300f9b34d","5514597ce74c1c2300f9b34e","5514597ce74c1c2300f9b34f","5514597ce74c1c2300f9b350","5514597ce74c1c2300f9b351","5514597ce74c1c2300f9b352","5514597ce74c1c2300f9b353","5514597ce74c1c2300f9b354","5514597ce74c1c2300f9b355","5514597ce74c1c2300f9b356"],"project":"54424ec108d2440800d6d02f","version":"5514597be74c1c2300f9b33e","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-12T05:09:16.836Z","from_sync":false,"order":6,"slug":"data-types","title":"Data Types"},"__v":3,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-18T01:04:24.931Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"never","params":[],"url":""},"isReference":false,"order":7,"body":"[Date](doc:date)s in Crunchbase are unlike typical Date in software development. In Crunchbase, components of the Date are often optional.\n\nFor example, when a user enters a died_on_date for a [Person](doc:person), the system requires only that the contributor enter a year.\n\nIn the screenshot below, the user is entering the Deceased date for Steve Jobs as 2011, omitting both month and day. Whereas this is valid input, the resulting [Date](doc:date) stored in the Graph (and returned from the API) is \"2011-01-01\". Without more information, a developer cannot know that the month and day were not provided.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/o1QkFDTaflAbMcFBKJwh_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]\nHere enters the [TrustCode](doc:trust-code). [TrustCode](doc:trust-code)s indicate which portions of a [Date](doc:date) can be \"trusted\". In other words, a [TrustCode](doc:trust-code) tells a developer which pieces of a [Date](doc:date) were entered by a user and which were omitted.\n\nUsing the table below, the Deceased trust code for the Steve Jobs example would be 4, meaning that only the year (2011) could be trusted / was entered.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"TrustCode\",\n    \"0-0\": \"0\",\n    \"0-1\": \"null or invalid date\",\n    \"h-1\": \"valid components\",\n    \"1-0\": \"1\",\n    \"1-1\": \"day\",\n    \"2-0\": \"2\",\n    \"2-1\": \"month\",\n    \"3-0\": \"3\",\n    \"3-1\": \"day + month\",\n    \"4-0\": \"4\",\n    \"4-1\": \"year\",\n    \"5-0\": \"5\",\n    \"5-1\": \"year + day\",\n    \"6-0\": \"6\",\n    \"6-1\": \"year + month\",\n    \"7-0\": \"7\",\n    \"7-1\": \"year + day + month\"\n  },\n  \"cols\": 2,\n  \"rows\": 8\n}\n[/block]","excerpt":"","slug":"trust-code","type":"basic","title":"TrustCode"}
[Date](doc:date)s in Crunchbase are unlike typical Date in software development. In Crunchbase, components of the Date are often optional. For example, when a user enters a died_on_date for a [Person](doc:person), the system requires only that the contributor enter a year. In the screenshot below, the user is entering the Deceased date for Steve Jobs as 2011, omitting both month and day. Whereas this is valid input, the resulting [Date](doc:date) stored in the Graph (and returned from the API) is "2011-01-01". Without more information, a developer cannot know that the month and day were not provided. [block:image] { "images": [ { "image": [ "https://files.readme.io/o1QkFDTaflAbMcFBKJwh_Screenshot%202015-03-26%2012.18.17.png", "Screenshot 2015-03-26 12.18.17.png", "1282", "1154", "#2c94a4", "" ] } ] } [/block] Here enters the [TrustCode](doc:trust-code). [TrustCode](doc:trust-code)s indicate which portions of a [Date](doc:date) can be "trusted". In other words, a [TrustCode](doc:trust-code) tells a developer which pieces of a [Date](doc:date) were entered by a user and which were omitted. Using the table below, the Deceased trust code for the Steve Jobs example would be 4, meaning that only the year (2011) could be trusted / was entered. [block:parameters] { "data": { "h-0": "TrustCode", "0-0": "0", "0-1": "null or invalid date", "h-1": "valid components", "1-0": "1", "1-1": "day", "2-0": "2", "2-1": "month", "3-0": "3", "3-1": "day + month", "4-0": "4", "4-1": "year", "5-0": "5", "5-1": "year + day", "6-0": "6", "6-1": "year + month", "7-0": "7", "7-1": "year + day + month" }, "cols": 2, "rows": 8 } [/block]