function cutDateFields(oDate, iStartIndex) {
		var aFields = [
			"FullYear",
			"Month",
			"Date",
			"Hours",
			"Minutes",
			"Seconds",
			"Milliseconds"
		], sMethodName;
		var oDateCopy = new Date(oDate.getTime());

		for (var i = iStartIndex; i < aFields.length; i++) {
			sMethodName = "set" + aFields[iStartIndex];
			oDateCopy[sMethodName].apply(oDateCopy, [0]);
		}
		return oDateCopy;
	}
/**
	 * Modifies the Date and sets the values with a higher index to <code>0</code>
	 *
	 * @param {Date} oDate input date
	 * @param {number} iStartIndex index of the value to set to <code>0</code>. Higher indices will also be set to <code>0</code>.
	 * 0: FullYear
	 * 1: Month
	 * 2: Date
	 * 3: Hours
	 * 4: Minutes
	 * 5: Seconds
	 * 6: Milliseconds
	 * e.g. iStartIndex <code>4</code> will set Minutes, Seconds and Milliseconds to <code>0</code>
	 * @returns {Date} copy of the date with the modified values
	 */
Modifies the Date and sets the values with a higher index to 0
@param {Date} oDate input date
@param {number} iStartIndex index of the value to set to 0. Higher indices will also be set to 0.
Modifies the Date and sets the values with a higher index to 0 @param { Date } oDate input date @param { number } iStartIndex index of the value to set to 0 . Higher indices will also be set to 0 .
function cutDateFields(oDate, iStartIndex) {
		var aFields = [
			"FullYear",
			"Month",
			"Date",
			"Hours",
			"Minutes",
			"Seconds",
			"Milliseconds"
		], sMethodName;
		var oDateCopy = new Date(oDate.getTime());
		for (var i = iStartIndex; i < aFields.length; i++) {
			sMethodName = "set" + aFields[iStartIndex];
			oDateCopy[sMethodName].apply(oDateCopy, [0]);
		}
		return oDateCopy;
	}
function cutDateFields ( oDate , iStartIndex ) { var aFields = [ "FullYear" , "Month" , "Date" , "Hours" , "Minutes" , "Seconds" , "Milliseconds" ] , sMethodName ; var oDateCopy = new Date ( oDate . getTime ( ) ) ; for ( var i = iStartIndex ; i < aFields . length ; i ++ ) { sMethodName = "set" + aFields [ iStartIndex ] ; oDateCopy [ sMethodName ] . apply ( oDateCopy , [ 0 ] ) ; } return oDateCopy ; }
Modifies the Date and sets the values with a higher index to <code>0</code>
 @param {Date} oDate input date
 @param {number} iStartIndex index of the value to set to <code>0</code>.
Modifies the Date and sets the values with a higher index to <code > 0< / code > @param { Date } oDate input date @param { number } iStartIndex index of the value to set to <code > 0< / code > .