{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6469","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6469/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6469/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6469/events","html_url":"https://github.com/wet-boew/wet-boew/issues/6469","id":55291010,"number":6469,"title":"Highlight specific date on the Date Pick","user":{"login":"E1D1","id":10670824,"avatar_url":"https://avatars.githubusercontent.com/u/10670824?v=3","gravatar_id":"","url":"https://api.github.com/users/E1D1","html_url":"https://github.com/E1D1","followers_url":"https://api.github.com/users/E1D1/followers","following_url":"https://api.github.com/users/E1D1/following{/other_user}","gists_url":"https://api.github.com/users/E1D1/gists{/gist_id}","starred_url":"https://api.github.com/users/E1D1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E1D1/subscriptions","organizations_url":"https://api.github.com/users/E1D1/orgs","repos_url":"https://api.github.com/users/E1D1/repos","events_url":"https://api.github.com/users/E1D1/events{/privacy}","received_events_url":"https://api.github.com/users/E1D1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Polyfill:%20Date%20picker","name":"Polyfill: Date picker","color":"006b75"},{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Suggestion:%20Enhancement","name":"Suggestion: Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-23T15:04:48Z","updated_at":"2015-02-02T19:22:35Z","closed_at":null,"body":"I would like to know if there is a way to highlight specific dates on the datepicker when using the the code below with  beforeShowDay:\r\n\r\nWET 4 Example\r\n--------------\r\n\r\n```javascript\r\n<div class=\"form-group\">\r\n\t<label for=\"startdate\">Start Date<span class=\"datepicker-format\"> (<abbr title=\"Four digits year, dash, two digits month, dash, two digits day\">YYYY-MM-DD</abbr>)</span></label>\r\n\t<input class=\"form-control\" type=\"date\" id=\"startdate\" name=\"startdate\" min=\"2013-03-27\" />\r\n</div>\r\n\r\n```\r\nI want the above code to behave like the one below\r\n\r\nCode to highlight dates\r\n----------------------------------\r\n```javascript\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css\" />\r\n <script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n <script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js\"></script>\r\n <script type=\"text/javascript\">\r\n           var sessionDays = [[2015, 01, 29, 'Session 1'], [2015, 02, 10, 'Session 2'], [2015, 02, 20, 'Session 3'], [2015, 06, 21, 'Session 4'], [2016, 09, 25, 'Session 6'], [2013, 10, 13, 'Comference'], [2015, 01, 12, 'Conference'], [2014, 12, 25, 'Christmas'], [2014, 12, 26, 'Boxing Day']];\t\t\t\t\t   \r\n\t\t\t\t\t        $(function () {\r\n           $(\"#date\").datepicker({\r\n               beforeShowDay: setsessionDays\r\n           });\r\n \r\n           \r\n           function setsessionDays(date) {\r\n               for (i = 0; i < sessionDays.length; i++) {\r\n                   if (date.getFullYear() == sessionDays[i][0]\r\n                        && date.getMonth() == sessionDays[i][1] - 1\r\n                        && date.getDate() == sessionDays[i][2]) {\r\n                       return [true, 'sessionDays', sessionDays[i][3]];\r\n                   }\r\n               }\r\n               return [true, ''];\r\n           }\r\n       });\r\n   </script>\r\n    <style type=\"text/css\">\r\n .ui-datepicker td.sessionDays a, .ui-datepicker td.sessionDays a:hover {\r\n    background: none #FFEBAF;\r\n    border: 1px solid #BF5A0C;\r\n  }\r\n</style>\r\n</head>\r\n<body>\r\n<h1>Highlight Date</h1>\r\n\r\n<input type=\"text\" id=\"date\" />\r\n\r\n</body>\r\n</html>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/72519574","html_url":"https://github.com/wet-boew/wet-boew/issues/6469#issuecomment-72519574","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6469","id":72519574,"user":{"login":"E1D1","id":10670824,"avatar_url":"https://avatars.githubusercontent.com/u/10670824?v=3","gravatar_id":"","url":"https://api.github.com/users/E1D1","html_url":"https://github.com/E1D1","followers_url":"https://api.github.com/users/E1D1/followers","following_url":"https://api.github.com/users/E1D1/following{/other_user}","gists_url":"https://api.github.com/users/E1D1/gists{/gist_id}","starred_url":"https://api.github.com/users/E1D1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E1D1/subscriptions","organizations_url":"https://api.github.com/users/E1D1/orgs","repos_url":"https://api.github.com/users/E1D1/repos","events_url":"https://api.github.com/users/E1D1/events{/privacy}","received_events_url":"https://api.github.com/users/E1D1/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T19:22:35Z","updated_at":"2015-02-02T19:22:35Z","body":"Yes I could but it won't highlight for instance feb. 3rd and feb. 14"}}