I have the following date being returned from my datepicker:

```
Date {Thu Oct 22 2015 00:00:00 GMT+0000 (GMT Standard Time)}

```

I am trying to use angularjs's $filter to format it the way i want but it does not appear to be working, is there a way around this?:

```
 $filter('date')(new Date($scope.form.date + ' ' + ticket.departure_time, "mediumDate"));

```