code: function swapDateFormat(v) {
    var part = v.split(/[/-]/);
    if (part.length === 3) {
      v = part[1] + "/" + part[0] + "/" + part[2];
    }
    return v;
  }
docs: If -'s or /'s are used to separate the fields, replace them with /'s, and swap the first and second fields. Eg. '30-12-2015' => '12/30/2015', the US format, because that is what javascript's Date expects.