use of java.util.Calendar in project head by mifos.
the class VoucherBranchMappingActionForm method setLastProcessDate.
public void setLastProcessDate(java.util.Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
// note that Calendar retrieves 0-based month, so increment month field
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH) + 1;
int year = c.get(Calendar.YEAR);
setLastProcessDateDD(Integer.toString(day));
setLastProcessDateMM(Integer.toString(month));
setLastProcessDateYY(Integer.toString(year));
}
use of java.util.Calendar in project head by mifos.
the class ConsolidatedTransactionActionForm method setLastProcessDate.
public void setLastProcessDate(java.util.Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
// note that Calendar retrieves 0-based month, so increment month field
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH) + 1;
int year = c.get(Calendar.YEAR);
setLastProcessDateDD(Integer.toString(day));
setLastProcessDateMM(Integer.toString(month));
setLastProcessDateYY(Integer.toString(year));
}
use of java.util.Calendar in project head by mifos.
the class ConsolidatedTransactionActionForm method setChequeDate.
public void setChequeDate(java.util.Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
// note that Calendar retrieves 0-based month, so increment month field
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH) + 1;
int year = c.get(Calendar.YEAR);
setChequeDateDD(Integer.toString(day));
setChequeDateMM(Integer.toString(month));
setChequeDateYY(Integer.toString(year));
}
use of java.util.Calendar in project head by mifos.
the class InterOfficeTransferActionForm method setChequeDate.
public void setChequeDate(java.util.Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
// note that Calendar retrieves 0-based month, so increment month field
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH) + 1;
int year = c.get(Calendar.YEAR);
setChequeDateDD(Integer.toString(day));
setChequeDateMM(Integer.toString(month));
setChequeDateYY(Integer.toString(year));
}
use of java.util.Calendar in project head by mifos.
the class ProcessAccountingTransactionsActionForm method setLastProcessDate.
public void setLastProcessDate(java.util.Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
// note that Calendar retrieves 0-based month, so increment month field
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH) + 1;
int year = c.get(Calendar.YEAR);
setLastProcessDateDD(Integer.toString(day));
setLastProcessDateMM(Integer.toString(month));
setLastProcessDateYY(Integer.toString(year));
}
Aggregations