{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Date Field","type":"basic","slug":"date-field","excerpt":"","body":"The Date Field stores a date value within the property, `value`.\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\t\\\"Tech Signature Date\\\": {\\n \\t\\\"displayValue\\\": \\\"3/31/2015\\\",\\n \\\"value\\\": \\\"2015-03-31T00:00:00Z\\\",\\n \\\"id\\\": \\\"f2bde96b-0d31-47c0-91d2-a46c0108d3c5\\\",\\n \\\"name\\\": \\\"Tech Sig Date\\\",\\n \\\"type\\\": \\\"Date\\\"\\n } \\n}\",\n \"language\": \"json\"\n }\n ]\n}\n[/block]\n\n[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"NOTE:\",\n \"body\": \"The id, name, and type are not necessary when creating or updating a form, they are returned in the `JSON` of a request for readability.\"\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"basic\",\n \"title\": \"Value\"\n}\n[/block]\nThe `value` property of the Date Field expects the date in the [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format and more specifically in [UTC](http://en.wikipedia.org/wiki/Coordinated_Universal_Time). \n\nThe expected format takes the following form, YYYY-MM-DDThh:mm:ssZ, where:\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Format\",\n \"h-1\": \"Description\",\n \"0-0\": \"YYYY\",\n \"0-1\": \"A four-digit year, 0000 through 9999.\",\n \"1-0\": \"MM\",\n \"1-1\": \"A two-digit month of the year, 01 through 12.\",\n \"2-1\": \"A two-digit day of that month, 01 through 31.\",\n \"2-0\": \"DD\",\n \"3-0\": \"hh\",\n \"3-1\": \"Zero-padded hour between 00 and 23\",\n \"4-1\": \"A zero-padded minute between 00 and 59\",\n \"4-0\": \"mm\",\n \"5-0\": \"ss\",\n \"5-1\": \"A zero-padded second between 00 and 60 (where 60 is only used to denote an added leap second).\"\n },\n \"cols\": 2,\n \"rows\": 6\n}\n[/block]\nThe Date field is only concerned with storing the date values. To that end, in order to save dates in the ISO 8601 format, set the hh:mm:ss of the format to 00:00:00, to indicate at the beginning of the day. \n\nAs an example, to set a Date Field to April 27th, 2015 the following format would be used:\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n\\t\\\"value\\\": \\\"2015-04-27T00:00:00Z\\\"\\n}\",\n \"language\": \"json\"\n }\n ]\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"basic\",\n \"title\": \"Display Value\"\n}\n[/block]\nThe `displayValue` property of a Date Field is read-only. This means any change to this property will not be persisted after initially setting or updating a Date Field. \n\nThe `displayValue` property presents the `value` property as a formatted `string` which is defined by the template rules.","updates":[],"order":6,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5536e76b20d5ca0d0001580d","category":{"sync":{"isSync":false,"url":""},"pages":["5536e6ed9f7f2d0d00b1cd56","5536e736bbb4a70d00a53534","5536e73f9f7f2d0d00b1cd59","5536e74dbbb4a70d00a53536","5536e7569f7f2d0d00b1cd5b","5536e7609f7f2d0d00b1cd5d","5536e76b20d5ca0d0001580d","5536e78220d5ca0d0001580f","5536e797b91d030d004c3d91","5536e7a120d5ca0d00015811","5536e7b320d5ca0d00015813","5536e7bbbbb4a70d00a5353a","5536e7c99f7f2d0d00b1cd60","5536e7d29030530d0007f860","5536e7dbbbb4a70d00a5353c","5536e7e69f7f2d0d00b1cd62","5571ef581cd8283500a8b4de","55b80d6be89bbf25009f045b"],"title":"Form Fields","slug":"form-fields","order":9,"from_sync":false,"reference":false,"_id":"5536e6bf7fe60f0d000fd1c0","__v":18,"createdAt":"2015-04-22T00:09:35.017Z","project":"55357364e02d480d0003c6d3","version":"553591cd63cc650d00312925"},"createdAt":"2015-04-22T00:12:27.276Z","__v":7,"user":"55356ede6040a20d00454508","project":"55357364e02d480d0003c6d3","version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["553591cd63cc650d00312926","553591cd63cc650d00312927","5536e4d39f7f2d0d00b1cd54","5536e55c20d5ca0d0001580a","5536e6bf7fe60f0d000fd1c0","5536f5bba171250d00c00556","553a974369c2630d00a8562e","553a97c60074c80d00621c2a","553a98332af5f20d000fc32a","553a9b9869c2630d00a85642","556e0f23d02e0b190042f13d","563249b1dcc27a1700823650","5639113f049e420d00476b03","59a5dd94aaa11d003334edb4"],"_id":"553591cd63cc650d00312925","project":"55357364e02d480d0003c6d3","releaseDate":"2015-04-20T23:54:53.134Z","__v":13,"forked_from":"55357365e02d480d0003c6d6","createdAt":"2015-04-20T23:54:53.134Z"},"githubsync":"","parentDoc":null}