function amStartOfFilter(value, type) {

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

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