textTemplate

Contains the format string or callback function used for formatting the value into the date input. The default value is {0:h:mm tt}:

  • Format string

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

<script type="text/javascript">
    $(function () {
        $("#picker").shieldTimePicker({
            textTemplate: "{0:h:MM:ss TT}"
        });
    });
</script>

  • Callback function

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

<script type="text/javascript">
    $(function () {
        $("#picker").shieldTimePicker({
            textTemplate: function(item) {
				  return item.date.getHours() + ":" + 
					     item.date.getminutest() ;
				}
        });
    });
</script>