title: custom angularjs filter date time format extra characters?
body: <p>I have create this custom angular js filter to format date and time but I have problem the format output is '03/25/2015 19:03 PM3/P3' from where this 3/p3 come from ?my format should be MM/DD/YYYY HH:MM AM/PM?</p>
  
  <p>javascript </p>
  
  <pre><code>app.filter('formatDateAndTime', function () {
      return function (input){
          if (moment.utc(input).local().format('MM/DD/YYYY HH:MM AM/PM') === 'Invalid date')
              return ' ';
          else
              return moment.utc(input).local().format('MM/DD/YYYY HH:MM AM/PM');
      };
  });
  </code></pre>