{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/18","labels_url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/18/comments","events_url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/18/events","html_url":"https://github.com/fengyuanchen/datepicker/issues/18","id":125377118,"number":18,"title":"Question: How to pick date from input value which is already inserted","user":{"login":"Counx","id":2949601,"avatar_url":"https://avatars.githubusercontent.com/u/2949601?v=3","gravatar_id":"","url":"https://api.github.com/users/Counx","html_url":"https://github.com/Counx","followers_url":"https://api.github.com/users/Counx/followers","following_url":"https://api.github.com/users/Counx/following{/other_user}","gists_url":"https://api.github.com/users/Counx/gists{/gist_id}","starred_url":"https://api.github.com/users/Counx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Counx/subscriptions","organizations_url":"https://api.github.com/users/Counx/orgs","repos_url":"https://api.github.com/users/Counx/repos","events_url":"https://api.github.com/users/Counx/events{/privacy}","received_events_url":"https://api.github.com/users/Counx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T11:35:23Z","updated_at":"2016-01-07T12:00:38Z","closed_at":null,"body":"Hello and first of all thanks for a nice plugin!\r\n\r\nI've created my own language file and changed the css a little and everything works fine. \r\n\r\nWhat i want to achieve now, is to get a data from my table and get the calendar to use this value as picked date. \r\n\r\n```php\r\n<?php echo \"\r\n<div class='col-xs-2'>\r\n            <input class='form-control input-sm' type='text' name='datetime' value='$timecreated'  data-toggle='datepicker'/>\r\n</div> \" ?>\r\n```\r\n\r\nI have placed my files in the header and my script at the end of the page.\r\n\r\n```html\r\n<head>\r\n        <link  href=\"/admin/plugins/datepicker/datepicker.css\" rel=\"stylesheet\">\r\n        <script src=\"/admin/plugins/datepicker/datepicker.js\"></script>\r\n        <script src=\"/admin/plugins/datepicker/datepicker.da-DK.js\"></script>\r\n</head>\r\n\r\n<script>\r\n    $('[data-toggle=\"datepicker\"]').datepicker({\r\n    language: 'da-DK'\r\n  });\r\n</script>\r\n```\r\n\r\nwhat i get by this code is a fine textfield with my imported data, but the calendar has selected \"today\" and when i pick any date, the textfield visible date is changed, but not the value of the input field. \r\n\r\nSee picture 1 and 2.\r\nPicture 1 is before i used the calendar.\r\nPucture 2 is when i changed the date with the calendar.\r\n\r\nCan you please help me with this? \r\n![picture1](https://cloud.githubusercontent.com/assets/2949601/12169747/1ad091a6-b53b-11e5-9e9d-5222de9d2ae7.png)\r\n![picture2](https://cloud.githubusercontent.com/assets/2949601/12169748/1ae7ef18-b53b-11e5-825b-f218c1183710.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/comments/169642901","html_url":"https://github.com/fengyuanchen/datepicker/issues/18#issuecomment-169642901","issue_url":"https://api.github.com/repos/fengyuanchen/datepicker/issues/18","id":169642901,"user":{"login":"Counx","id":2949601,"avatar_url":"https://avatars.githubusercontent.com/u/2949601?v=3","gravatar_id":"","url":"https://api.github.com/users/Counx","html_url":"https://github.com/Counx","followers_url":"https://api.github.com/users/Counx/followers","following_url":"https://api.github.com/users/Counx/following{/other_user}","gists_url":"https://api.github.com/users/Counx/gists{/gist_id}","starred_url":"https://api.github.com/users/Counx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Counx/subscriptions","organizations_url":"https://api.github.com/users/Counx/orgs","repos_url":"https://api.github.com/users/Counx/repos","events_url":"https://api.github.com/users/Counx/events{/privacy}","received_events_url":"https://api.github.com/users/Counx/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T12:00:38Z","updated_at":"2016-01-07T12:00:38Z","body":"##Update!\r\n\r\nI fixed the issue with the Calendar, not picking the date which the field contains. I had datetime and not only date imported from my database. \r\n\r\nI still have the error with the field not updating to the newly selected value like you see in the pages. This still doesn't work even tho i changed to only use date format."}}