About 50 results
Open links in new tab
  1. date - java SimpleDateFormat - Stack Overflow

    Oct 26, 2012 · For anyone reading this question today or tomorrow I recommend you don’t use SimpleDateFormat. That class is notoriously troublesome and long outdated. Instead just use …

  2. java - What are the date formats available in SimpleDateFormat class ...

    Oct 8, 2012 · Can anybody let me know about the date formats available in SimpleDateFormat class. I have gone through api but could not find a satisfactory answer.Any help is highly appreciated.

  3. java - how to format date using SimpleDateFormat - Stack Overflow

    Feb 20, 2015 · What are you trying to do exactly? Why can't you use the SimpleDateFormat to parse the Date too. More importantly, why aren't you using the new Java 8 DateTime API??

  4. java - How to convert a String to a Date using SimpleDateFormat ...

    Sep 13, 2015 · FYI, the troublesome old date-time classes such as java.util.Date, java.util.Calendar, and java.text.SimpleDateFormat are now legacy, supplanted by the java.time classes built into Java 8 …

  5. java - SimpleDateFormat and locale based format string - Stack Overflow

    Nov 2, 2009 · The month part works OK if I add the locale to the SimpleDateFormat constructor, but what about the rest? I was hoping I could add format strings paired with locales to …

  6. How to get the current time in YYYY-MM-DD HH:MI:Sec.Millisecond …

    Sep 22, 2009 · The question and the accepted answer use java.util.Date and SimpleDateFormat which was the correct thing to do in 2009. In Mar 2014, the java.util date-time API and their formatting API, …

  7. java - SimpleDateFormat String - Stack Overflow

    Feb 17, 2015 · 6 There are two applications of SimpleDateFormat: parse a string - when you have a date represented as string, and you want to get the corresponding Date object. Then use …

  8. Java SimpleDateFormat for time zone with a colon separator?

    The java.time framework is the successor to both Joda-Time library and the old troublesome date-time classes bundled with the earliest versions of Java (java.util.Date/.Calendar & …

  9. java - How to parse dates in multiple formats using SimpleDateFormat ...

    Oct 26, 2010 · I am trying to parse some dates that are coming out of a document. It would appear users have entered these dates in a similar but not exact format. here are the formats: 9/09 9/2009 …

  10. Time formatting using SimpleDateFormat in java - Stack Overflow

    Time formatting using SimpleDateFormat in java Asked 11 years, 1 month ago Modified 8 years, 3 months ago Viewed 12k times