Top "Simpledateformat" questions

SimpleDateFormat is a concrete Java class for formatting and parsing dates and times in a locale-sensitive manner.

Java day of the week from string

I have this simple code: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Date date = format.parse("2011-10-29"); calendar.setTime(date); Log.…

java date calendar simpledateformat dayofweek
How to improve performance of SimpleDateFormat wrapped in ThreadLocal?

This is on Java 7 (51) on RHEL with 24 cores We are noticing a rise in average response times of a java …

java performance concurrency simpledateformat thread-local
Iterate between two dates including start date?

Sorry for the apology for asking repeated question.. public static void main(String[] args)throws Exception { GregorianCalendar gcal = new GregorianCalendar(); …

java calendar simpledateformat gregorian-calendar
JXDatePicker using SimpleDateFormat to format dd.MM.yy to dd.MM.yyyy with current century

as already explained I want to achieve, that when the user is editing a date within a JXDatePicker, he can …

java regex swing simpledateformat swingx
android.text.format.DateFormat "HH" is not recognized like with java.text.SimpleDateFormat

When I use the "HH" flag in android.text.format.DateFormat, it is interpreted as a literal "HH". But when …

java android date-format simpledateformat
Getting the correct GMT format using DateFormat Object

If i have a File object how can i get the lastModified() date of this file in this GMT format: …

java date-format simpledateformat gmt
How to get only Hour and Minute of JSpinner?

I have a JSpinner. When i usespinner.getValue()it gives me Sun Mar 24 01:11:41 PDT 2013 but i want to have only …

java swing simpledateformat jspinner
Parse String date in (yyyy.MM.dd HH.mm.ss.S) format

I want the Input string which is of pattern "yyyy.MM.dd HH.mm.ss.S" to be converted to …

java simpledateformat parseexception
Convert GMT DateTime String

I am pretty new to Java and I am a little stuck with using SimpleDateFormat and Calendar. I have a …

java android date simpledateformat gmt
Convert java.time.LocalDate to java.util.Date

I have java.time.LocalDate Object in yyyy-MM-dd format. I would like to know how to convert this to java.…

java simpledateformat java.util.date