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 - 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??

  3. java - What are the date formats available in SimpleDateFormat …

    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 …

  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 …

  5. How to get the current time in YYYY-MM-DD …

    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 …

  6. java - How to parse dates in multiple formats using …

    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: …

  7. java - SimpleDateFormat and locale based format string - Stack …

    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 …

  8. 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 …

  9. java - Get day, month and year separately using SimpleDateFormat ...

    SimpleDateFormat format = new SimpleDateFormat("MMM dd,yyyy hh:mm"); String date = format.format(Date.parse(payback.creationDate.date)); I'm giving date with the format like …

  10. 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 & …