Top "Simpledateformat" questions

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

Java SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") gives timezone as IST

I have SimpleDateFormat constructor as SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") and I am parsing string "2013-09-29T18:46:19Z". I have …

java date timezone date-format simpledateformat
How can I get current date in Android?

I wrote the following code Date d = new Date(); CharSequence s = DateFormat.format("MMMM d, yyyy ", d.getTime()); But is …

android date simpledateformat android-date
What is this date format? 2011-08-12T20:17:46.384Z

I have the following date: 2011-08-12T20:17:46.384Z. What format is this? I'm trying to parse it with Java 1.4 …

java date time format simpledateformat
How to parse a date?

I am trying to parse this date with SimpleDateFormat and it is not working: import java.text.ParseException; import java.…

java date simpledateformat
Convert String to Calendar Object in Java

I am new to Java, usually work with PHP. I am trying to convert this string: Mon Mar 14 16:02:37 GMT 2011 Into …

java date datetime calendar simpledateformat
Java format yyyy-MM-dd'T'HH:mm:ss.SSSz to yyyy-mm-dd HH:mm:ss

I'm trying to format a date in yyyy-MM-dd'T'HH:mm:ss.SSSz format to yyyy-mm-dd HH:mm:ss, which should be …

java parsing date simpledateformat
How to convert a String to a Date using SimpleDateFormat?

I have this code snippet: DateFormat formatter1; formatter1 = new SimpleDateFormat("mm/DD/yyyy"); System.out.println((Date)formatter1.parse("08/16/2011")); When …

java datetime date-format simpledateformat
Get yesterday's date using Date

The following function produces today's date; how can I make it produce only yesterday's date? private String toDate() { DateFormat dateFormat = …

java date datetime simpledateformat
What are the date formats available in SimpleDateFormat class?

Can anybody let me know about the date formats available in SimpleDateFormat class. I have gone through api but could …

java date simpledateformat
java.text.ParseException: Unparseable date

I am getting a parsing exception while I am trying the following code: String date="Sat Jun 01 12:53:10 IST 2013"; SimpleDateFormat sdf=…

java simpledateformat parseexception