function _createDateString(date)
            {
                if (date instanceof Date) {
                    var year = date.getFullYear();
                    var month = date.getMonth() + 1;
                    if (month < 10) month = "0" + month;
                    var day = date.getDate();
                    if (day < 10) day = "0" + day;
                    return year + "-" + month + "-" + day;
                }
                else {
                    return date;
                }
            }
Adds a date input control. In some browsers this will just render as a text input field, but should still retain all other functionality.
@param title {String} The title of the control.
@param date {String|Date} A string in the format "YYYY-MM-DD" or a Date object.
@param [callback] {Function} Callback function that will be called when the value of this control changes.
@returns {*}