About 53 results
Open links in new tab
  1. 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. Android SimpleDateFormat, how to use it? - Stack Overflow

    Sep 29, 2010 · For new readers to this question consider throwing away the long outmoded and notoriously troublesome SimpleDateFormat and friends. See if you either can use desugaring or add …

  3. how to format date using SimpleDateFormat - Stack Overflow

    Feb 20, 2015 · I cannot format a date. dateFormat.format() accepts a Date as argument. So I created a new Date() It says the below Date() method is deprecated, and I get the below exception while …

  4. How to convert a String to a Date using SimpleDateFormat?

    Sep 13, 2015 · How to convert a String to a Date using SimpleDateFormat? Asked 13 years, 10 months ago Modified 12 months ago Viewed 357k times

  5. How to parse dates in multiple formats using SimpleDateFormat

    Oct 26, 2010 · How to parse dates in multiple formats using SimpleDateFormat Asked 15 years, 3 months ago Modified 4 years, 9 months ago Viewed 150k times

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

  7. java - SimpleDateFormat with TimeZone - Stack Overflow

    May 4, 2009 · As an aside consider throwing away the long outmoded and notoriously troublesome SimpleDateFormat and friends, and adding ThreeTenABP to your Android project in order to use …

  8. 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. Get day, month and year separately using SimpleDateFormat

    The accepted answer here suggests to use more than one SimpleDateFormat, but it's possible to do this using one SimpleDateFormat instance and calling applyPattern.

  10. Newest 'simpledateformat' Questions - Stack Overflow

    Aug 25, 2025 · I'm using SimpleDateFormat to get the hours and seconds in this format "HH:MM a" for 2 dates in same function. The output printing is same for both of them and it is mostly of the first date....