Top "Simpledateformat" questions

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

Multiple exceptions thrown parsing date string

I am trying to parse a string into a date in the constructor of an object, which we will call …

java tomcat simpledateformat
Can we declare SimpleDateFormat objects as static objects

SimpleDateFormat monthFormat = new SimpleDateFormat("MMMM"); SimpleDateFormat fullFormat = new SimpleDateFormat("EE MMM dd, HH:mm:ss") I have several such piece …

java thread-safety simpledateformat
Conversion of string with AM/PM date-time, from Oracle database

I have the timestamp in form of 03-AUG-12 08.15.00.000000000 PM -05:00 I am unable to get a String representation in form …

java parsing simpledateformat java.util.date
Parsing a date’s ordinal indicator ( st, nd, rd, th ) in a date-time string

I checked the SimpleDateFormat javadoc, but I am not able to find a way to parse the ordinal indicator in …

java simpledateformat date-parsing
Difference between kk and HH in date formatting java

I'm pretty new to java and am trying to format a time using 24 hour format. I've come across two ways …

java datetime date-format simpledateformat
Java - Unparseable date

I am trying to parse a date, but I am oddly getting an exception. This is the code: import java.…

java simpledateformat
Java SimpleDateFormat always returning January for Month

I'm working on taking a date value (createWhen) from Active Directory, and translating it into a Java date, for the …

java active-directory simpledateformat
SimpleDateFormat parse(string str) doesn't throw an exception when str = 2011/12/12aaaaaaaaa?

Here is an example: public MyDate() throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/d"); sdf.setLenient(false); String t1 = "2011/12/12…

java simpledateformat parseexception
Convert SimpleDateFormat to DateTimeFormatter

So when trying to replace some legacy code using SimpleDateFormat and Date, to use java.time.DateTimeFormatter and LocalDate I …

java java-8 simpledateformat datetime-format
Date Conversion with ThreadLocal

I have a requirement to convert incoming date string format "20130212" (YYYYMMDD) to 12/02/2013 (DD/MM/YYYY) using ThreadLocal. I know a …

java simpledateformat date-conversion