Examples of formatDate()


Examples of Framework.DateFormat.formatDate()

     * @return
     */
    public String toStringDate(DateTimeData date) {
        DateFormat gmtfmt = new DateFormat();
        gmtfmt.setTemplate("ddd, dd mmm yyyy hh:mm:ss GMT");
        return gmtfmt.formatDate(date).toString();
    }

    /**
     * @param date
     * @return
 
View Full Code Here

Examples of Framework.DateFormat.formatDate()

     * @return
     */
    public String toStringDate(DateTimeData date) {
        DateFormat gmtfmt = new DateFormat();
        gmtfmt.setTemplate("ddd, dd mmm yyyy hh:mm:ss GMT");
        return gmtfmt.formatDate(date).toString();
    }

    /**
     * @param date
     * @return
 
View Full Code Here

Examples of Framework.DateFormat.formatDate()

                    //
                    JComponent fld = this.getFieldForAttr(i);
                    if (fld != null && fld instanceof DataField && DateTemplate.get(((DataField)fld)) != null) {
                        ((DateTimeNullable)attr).setCurrent();
                        DateFormat fmt = new DateFormat(DateTemplate.get(((DataField)fld)));
                        TextData dateTxt = fmt.formatDate((DateTimeNullable)attr);

                        ((DateTimeNullable)attr).decodeValue(dateTxt, fmt);
                    }
                    else {
                        ((DateTimeNullable)attr).setCurrent();
View Full Code Here

Examples of Framework.DateFormat.formatDate()

                    //
                    JComponent fld = this.getFieldForAttr(i);
                    if (fld != null && fld instanceof DataField && DateTemplate.get(((DataField)fld)) != null) {
                        ((DateTimeNullable)attr).setCurrent();
                        DateFormat fmt = new DateFormat(DateTemplate.get(((DataField)fld)));
                        TextData dateTxt = fmt.formatDate((DateTimeNullable)attr);

                        ((DateTimeNullable)attr).decodeValue(dateTxt, fmt);
                    }
                    else {
                        ((DateTimeNullable)attr).setCurrent();
View Full Code Here

Examples of com.dci.intellij.dbn.common.locale.Formatter.formatDate()

                customDateFormatTextField.setText(formatter.getDateFormatPattern());
                customTimeFormatTextField.setText(formatter.getTimeFormatPattern());
            }

            if (formatter != null) {
                datePreviewLabel.setText(formatter.formatDate(previewDate));
                timePreviewLabel.setText(formatter.formatTime(previewDate));
                numberPreviewLabel.setText(formatter.formatNumber(previewNumber));
                integerPreviewLabel.setText(formatter.formatInteger(previewNumber));
            }
View Full Code Here

Examples of com.dci.intellij.dbn.common.locale.Formatter.formatDate()

                            value = formatter.formatNumber(number);
                        } else if (object instanceof Date) {
                            Date date = (Date) object;
                            value = hasTimeComponent(date) ?
                                    formatter.formatDateTime(date) :
                                    formatter.formatDate(date);
                        } else {
                            value = object.toString();
                        }
                    }
                }
View Full Code Here

Examples of com.dci.intellij.dbn.common.locale.Formatter.formatDate()

                            value = formatter.formatNumber(number);
                        } else if (object instanceof Date) {
                            Date date = (Date) object;
                            value = hasTimeComponent(date) ?
                                    formatter.formatDateTime(date) :
                                    formatter.formatDate(date);
                        } else {
                            value = object.toString();
                        }
                    }
View Full Code Here

Examples of com.jada.content.Formatter.formatDate()

      if (shipDate == null || shipDate.before(shipHeader.getShipDate())) {
        shipDate = shipHeader.getShipDate();
      }
    }
    if (shipDate != null) {
      form.setShipDate(numberFormatter.formatDate(shipDate));
    }
    form.setOrderStatus(header.getOrderStatus());
    form.setOrderStatusDesc(resources.getMessage("order.status." + header.getOrderStatus()));
    form.setOrderDatetime(numberFormatter.formatDate(header.getOrderDate()));
   
View Full Code Here

Examples of com.jada.content.Formatter.formatDate()

    if (shipDate != null) {
      form.setShipDate(numberFormatter.formatDate(shipDate));
    }
    form.setOrderStatus(header.getOrderStatus());
    form.setOrderStatusDesc(resources.getMessage("order.status." + header.getOrderStatus()));
    form.setOrderDatetime(numberFormatter.formatDate(header.getOrderDate()));
   
    PaymentTran paymentTran = header.getPaymentTran();
    if (paymentTran != null) {
      form.setAuthCode(paymentTran.getAuthCode());
      form.setPaymentReference1(paymentTran.getPaymentReference1());
View Full Code Here

Examples of com.jada.content.Formatter.formatDate()

      OrderTracking orderTracking = (OrderTracking) iterator.next();
      TrackingDisplayForm displayForm = new TrackingDisplayForm();
      displayForm.setOrderTrackingId(Format.getLong(orderTracking.getOrderTrackingId()));
      displayForm.setOrderTrackingCode(resources.getMessage("order.tracking." + orderTracking.getOrderTrackingCode()));
      displayForm.setOrderTrackingMessage(orderTracking.getOrderTrackingMessage());
      displayForm.setOrderTrackingDatetime(numberFormatter.formatDate(orderTracking.getRecUpdateDatetime()));
      displayForm.setOrderTrackingInternal(orderTracking.getOrderTrackingInternal());
      vector.add(displayForm);
    }
    TrackingDisplayForm orderTrackings[] = new TrackingDisplayForm[vector.size()];
    vector.copyInto(orderTrackings);
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.