textTemplate

Contains the format string or callback function used for formatting the value into the date input. The default value is {0:MM/dd/yyyy}:

  • Format string

<input id="picker" ></input>

<script type="text/javascript">
    $(function () {
        $("#picker").shieldDatePicker({
            textTemplate: "{0:yyyy/MM/dd}"
        });
    });
</script>

  • Callback function

<input id="picker" ></input>

<script type="text/javascript">
    $(function () {
        $("#picker").shieldDatePicker({
            textTemplate: function(item) {
				  return item.date.getFullYear() + "." + 
					     item.date.getMonth() + "." + 
						 item.date.getDate();
				}
        });
    });
</script>