Top "Simpledateformat" questions

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

Inconsistent date parsing using SimpleDateFormat

I'm really scratching my head on this one. I've been using SimpleDateFormats with no troubles for a while, but now, …

java date simpledateformat date-parsing
Why Does Java's SimpleDateFormat parse this

Hi I've got a simple date format set up with a custom format string: MMddyy and I give it the …

java date-format simpledateformat
Generic support for ISO 8601 format in Java 6

Java 7 has introduced support in the SimpleDateFormat class for ISO 8601 format, via the character X (instead of lower or upper …

java regex date simpledateformat java-6
SimpleDateFormat: unparseable date exception

After looking after several existing posts, I am still not able to get my SimpleDateFormat parser working. Here is the …

java android date-format simpledateformat parseexception
Illegal pattern character 'Y' on Ubuntu

I use this pattern SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); in windows and it works, but when try …

java windows-7 ubuntu-10.04 simpledateformat playframework-1.x
Java ParseException while attempting String to Date parsing

I'm having a hard time Parsing/Formatting a Date string received back from a web service. I've attempted multiple approaches, …

java android simpledateformat parseexception
Difference in hours of two Calendar objects

I have two Calendar objects, and I want to check what is the difference between them, in hours. Here is …

java android calendar simpledateformat
How do I format JDateChooser into dd-mm-yyyy?

I am trying to output the current date format into: DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");, but it is outputting like …

java string date simpledateformat jdatechooser
Getting wrong data when using SimpleDateFormat.parse()

I am getting the strangest error, when trying to parse a string as a calendar. It seems that it messes …

java parsing date simpledateformat date-formatting
Android: Date Format in Month date year

My date in the application is displaying as 07/10/2011(dd/MM/yyyy)...I want date to be in the format Oct 7,2011 …

android date-format simpledateformat android-date