About 50 results
Open links in new tab
  1. 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.

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

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

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

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

  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. Converting ISO 8601-compliant String to java.util.Date

    Feb 5, 2010 · Unfortunately, the time zone formats available to SimpleDateFormat (Java 6 and earlier) are not ISO 8601 compliant. SimpleDateFormat understands time zone strings like "GMT+01:00" or …

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

  9. Convert java.util.Date to String - Stack Overflow

    These classes supplant the troublesome old date-time classes such as java.util.Date, .Calendar, & java.text.SimpleDateFormat. The Joda-Time project, now in maintenance mode, advises migration to …

  10. java - Optional parts in SimpleDateFormat - Stack Overflow

    May 5, 2011 · 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 & …