Package net.rim.device.api.i18n

Examples of net.rim.device.api.i18n.DateFormat


     */
    public static String getDateAsString(final Date date, final int style) {
        String dateString = null;

        if (date != null) {
            final DateFormat dateFormat = DateFormat.getInstance(style);
            dateString = dateFormat.formatLocal(date.getTime());
        }

        return dateString;
    }
View Full Code Here


                }
            }
        });
        vfm.add(_choiceField);

        final DateFormat dateFormat =
                DateFormat.getInstance(DateFormat.DATETIME_DEFAULT);
        _dateField = new DateField("", System.currentTimeMillis(), dateFormat);
        _dateField.setEnabled(false);
        vfm.add(_dateField);
View Full Code Here

                    buffer.append('0');
                }

                buffer.append(seconds);

                final DateFormat dateFormatter =
                        new SimpleDateFormat(DateFormat.DATETIME_DEFAULT);

                String dateStr =
                        dateFormatter.formatLocal(travelTime.getStartTime());
                String msg = "Start Time: " + dateStr;
                _startLabel.setText(msg);

                dateStr = dateFormatter.formatLocal(travelTime.getEndTime());
                msg = "End Time: " + dateStr;
                _endLabel.setText(msg);

                msg = "Travel Time (h:m:s): " + buffer.toString();
                _elapsedLabel.setText(msg);
View Full Code Here

TOP

Related Classes of net.rim.device.api.i18n.DateFormat

Copyright © 2018 www.massapicom. 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.