DateBox Formatter

DateBox Formatter

   1: $('[date]').datebox({
   2:     required: true,
   3:     formatter: function (date) { return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); }
   4: });