I got the code below from https://github.com/Pikaday/Pikaday
var picker = new Pikaday( { field: document.getElementById(\'tbReservationDate\'),