Application.Filters.filter('toDateString', function () {

    return function (input) {
        if (input) {
            var t = input.epoch_time;
            return new Date(t * 1000).toDateString();
        }
    };
});
Application.Filters.filter('toDateString', function () {
    return function (input) {
        if (input) {
            var t = input.epoch_time;
            s = new Date(t * 1000).toDateString();
            return s;
        }
        return "";
    };
});

Return a value in the invalid case.
Return a value in the invalid case.
