Package java.text

Examples of java.text.SimpleDateFormat.format()


        arg1.setAttribute("modifiedbyname", modifiedbyname);

        DateFormat df = new SimpleDateFormat("dd/MM/yyyy - h:mm a") ;
        String modified= "";
        if(oldTaskVO.getModifiedOn() != null)
         modified= df.format(oldTaskVO.getModifiedOn());

        arg1.setAttribute("modifiedon" , modified);
        arg1.setAttribute("modifiedby" , ""+oldTaskVO.getModifiedBy());
      }
View Full Code Here


        }

        // TODO l10n date.
        DateFormat df = new SimpleDateFormat("dd/MM/yyyy - h:mm a");
        if (taskVO.getModifiedOn() != null) {
          String createdon = df.format(taskVO.getCreatedOn());
          taskForm.setCreatedOn(createdon);
        }
        if (taskVO.getModifiedOn() != null) {
          taskForm.setModifiedOn(df.format(taskVO.getModifiedOn()));
        }
View Full Code Here

        if (taskVO.getModifiedOn() != null) {
          String createdon = df.format(taskVO.getCreatedOn());
          taskForm.setCreatedOn(createdon);
        }
        if (taskVO.getModifiedOn() != null) {
          taskForm.setModifiedOn(df.format(taskVO.getModifiedOn()));
        }

        if (taskVO.getModifiedBy() != 0) {
          taskForm.setModifiedbyid(String.valueOf(taskVO.getModifiedBy()));
        }
View Full Code Here

      CvFileFacade cvf = new CvFileFacade();
      CvFolderVO folder = cvf.getHomeFolder(elementID, this.dataSource);

      SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
      String yyyymmdd = sdf.format(new java.util.Date(System.currentTimeMillis()));

      folder.setName(folder.getName() + "." + yyyymmdd + "." + "deleted");
      folder.setOwner(indvID);
      cvf.updateFolder(indvID, folder, this.dataSource);
View Full Code Here

        startHrs = calendarStart.get(Calendar.HOUR_OF_DAY);
        startMins = calendarStart.get(Calendar.MINUTE);

        DateFormat df = new SimpleDateFormat("h:mm a");

        dynaForm.setStartTime((df.format(timeSlipVO.getStart())).toString());
      }

      if (timeSlipVO.getEnd() != null)
      {
        tEndTime = (Time) timeSlipVO.getEnd();
View Full Code Here

        endHrs = calendarEnd.get(Calendar.HOUR_OF_DAY);
        endMins = calendarEnd.get(Calendar.MINUTE);

        DateFormat df = new SimpleDateFormat("h:mm a");

        dynaForm.setEndTime((df.format(timeSlipVO.getEnd())).toString());
      }

      if (timeSlipVO.getBreakTime() != -1)
      {
        Float BreakTime = new Float(timeSlipVO.getBreakTime());
View Full Code Here

      SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy - h:mm a");

      if (projectVO.getCreated() != null)
      {
        dynaForm.setCreatedOn(dateFormat.format(projectVO.getCreated()));
      }

      if (projectVO.getModified() != null)
      {
        dynaForm.setModifiedOn(dateFormat.format(projectVO.getModified()));
View Full Code Here

        dynaForm.setCreatedOn(dateFormat.format(projectVO.getCreated()));
      }

      if (projectVO.getModified() != null)
      {
        dynaForm.setModifiedOn(dateFormat.format(projectVO.getModified()));
      }

      if (projectVO.getCreatorName() != null)
      {
        dynaForm.setCreatorName(projectVO.getCreatorName());
View Full Code Here

      int startHrs = calendarStart.get(Calendar.HOUR_OF_DAY);
      int startMins = calendarStart.get(Calendar.MINUTE);
      DateFormat df = new SimpleDateFormat("h:mm a");

      tsForm.setStartTime((df.format(tvo.getStart())).toString());

      Calendar calendarEnd = Calendar.getInstance();
      calendarEnd.setTime(tvo.getEnd());

      int endHrs = calendarEnd.get(Calendar.HOUR_OF_DAY);
View Full Code Here

      Calendar calendarEnd = Calendar.getInstance();
      calendarEnd.setTime(tvo.getEnd());

      int endHrs = calendarEnd.get(Calendar.HOUR_OF_DAY);
      int endMins = calendarEnd.get(Calendar.MINUTE);
      tsForm.setEndTime((df.format(tvo.getEnd())).toString());

      Float BreakTime = new Float(tvo.getBreakTime());
      int iHours = BreakTime.intValue();
      float breakTime = (BreakTime.floatValue() - iHours) * 60;
      Float Mins = new Float(breakTime);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.