Package net.rim.device.api.i18n

Examples of net.rim.device.api.i18n.SimpleDateFormat.format()


        return _dateTimePicker.doModal();
    }
   
    public Object getSelectedValue() {
        SimpleDateFormat sdf = new SimpleDateFormat( _HTML5Calendar.getFormat().toString() );
        StringBuffer sb = sdf.format( _dateTimePicker.getDateTime(), new StringBuffer(16), null );
       
        return sb.toString();
    }
   
    private static int parseInt( String s, int from, int to ) {
View Full Code Here


        messageBuffer.append("Subject: " + subject + "\r\n");
        messageBuffer.append("Content-Type: " + mailmessage.getContentType()+"\r\n");

        SimpleDateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ");
        StringBuffer date = new StringBuffer(formatter.format(mailmessage.getSentDate()));
        // Add timezone offset
        Calendar gmt = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
        Calendar local = Calendar.getInstance();
        gmt.setTime(mailmessage.getSentDate());
        local.setTime(mailmessage.getSentDate());
View Full Code Here

            }

            SimpleDateFormat formatter = new SimpleDateFormat(format);
            // FIXME: why cal.getTime().getTime() should be different from value?
            sdh.log(">>>original date: " + new Date(cal.getTime().getTime()).toString());
            formattedDate = formatter.format( new Date(cal.getTime().getTime() - oneDay) );
            sdh.log(">>>fixed date: " + formattedDate);
           
            /*
             * this is to use the start date
             * information of the <Start>
View Full Code Here

        final StringBuffer buff = new StringBuffer();
        buff.append('[');
        buff.append(cal.get(Calendar.DAY_OF_MONTH));
        buff.append('-');
        buff.append(sdf.format(cal, new StringBuffer(), null).toString());
        buff.append("] ");

        return buff.toString();
    }
View Full Code Here

        final StringBuffer buff = new StringBuffer();
        buff.append('[');
        buff.append(cal.get(Calendar.DAY_OF_MONTH));
        buff.append('-');
        buff.append(sdf.format(cal, new StringBuffer(), null).toString());
        buff.append("] ");

        return buff.toString();
    }
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.