function amEndOfFilter(value, type) {

					if (isUndefinedOrNull(value)) {
						return '';
					}

					return moment(value).endOf(type);
				}
@ngdoc filter
@name angularMoment.filter:amEndOf
@module angularMoment
@function