Java Code Examples for ims.framework.utils.Date.copy()

The following are Jave code examples for showing how to use copy() of the ims.framework.utils.Date class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File:   Source Code and License Vote up 6 votes
private Date[] loadDateArray(Date startDate) 
	Date[] arrDates = new Date[8];
	Date dispDate1 = startDate.copy();
	arrDates[0] = dispDate1;
	Date dispDate2 = startDate.copy().addDay(1);
	arrDates[1] = dispDate2;
	Date dispDate3 = startDate.copy().addDay(2);
	arrDates[2] = dispDate3;
	Date dispDate4 = startDate.copy().addDay(3);
	arrDates[3] = dispDate4;
	Date dispDate5 = startDate.copy().addDay(4);
	arrDates[4] = dispDate5;
	Date dispDate6 = startDate.copy().addDay(5);
	arrDates[5] = dispDate6;
	Date dispDate7 = startDate.copy().addDay(6);
	arrDates[6] = dispDate7;
	Date dispDate8 = startDate.copy().addDay(7);
	arrDates[7] = dispDate8;
	return arrDates;