Thursday, May 16, 2013

ADF 11G: Set Current Date in af:inputDate

ADF 11G: Set Current Date in af:inputDate









    public String setCurrentDate() {
      
        Date convertedDate = new Date(Date.getCurrentDate());
                  String convertedDateString;
                  java.text.SimpleDateFormat displayDateFormat = new java.text.SimpleDateFormat ("MM/dd/yyyy");
                  convertedDateString = displayDateFormat.format(convertedDate.dateValue());
                 
                  id1.setValue(convertedDateString);
        id1.setRendered(true);
        return null;
    }