Java java.text SimpleDateFormat

Introduction

  1. Java SimpleDateFormat Class
  2. Java SimpleDateFormat formatting Symbols
  3. Java SimpleDateFormat create from Locale and custom format
  4. Java SimpleDateFormat format Calendar to String as 12:20
  5. Java SimpleDateFormat format Date to String as "02/25/20"
  6. Java SimpleDateFormat format Date to String as "02020.February.25 AD 11:06 AM"
  7. Java SimpleDateFormat format Date to String as "09.57.36"
  8. Java SimpleDateFormat format Date to String as "200225110827-0800"


  9. Java SimpleDateFormat format Date to String as "2020-02-25T11:07:54.793-08:00"
  10. Java SimpleDateFormat format Date to String as "2020.02.25 AD at 09:41:39 PST"
  11. Java SimpleDateFormat format Date to String as "2020.02.25.09.55.00"
  12. Java SimpleDateFormat format Date to String as "2020.February.25 AD 09:43 AM"
  13. Java SimpleDateFormat format Date to String as "24/02/2020"
  14. Java SimpleDateFormat format Date to String as "25-Feb-20"
  15. Java SimpleDateFormat format Date to String as "25.02.20"
  16. Java SimpleDateFormat format Date to String as "9:42:49:686"


  17. Java SimpleDateFormat format Date to String as "9:44 AM,PST"
  18. Java SimpleDateFormat format Date to String as "9:45 AM"
  19. Java SimpleDateFormat format Date to String as "9:45"
  20. Java SimpleDateFormat format Date to String as "February 24, 2020"
  21. Java SimpleDateFormat format Date to String as "Tue 25 Feb 20"
  22. Java SimpleDateFormat format Date to String as "Tue, 25 Feb 2020 09:54:21 -0800"
  23. Java SimpleDateFormat format Date to String as "Tue, Feb 25, '20"
  24. Java SimpleDateFormat format date to String like "2020-02-24"
  25. Java SimpleDateFormat format date to String like "2020/02/24" (forward slash)
  26. Java SimpleDateFormat format day as "1", "01"
  27. Java SimpleDateFormat format day of week as "Sun", "Sunday"
  28. Java SimpleDateFormat format hour as "1", "01"
  29. Java SimpleDateFormat format minute as "1", "01"
  30. Java SimpleDateFormat format month as "2", "02", "Feb", "February"
  31. Java SimpleDateFormat format second as "1", "01"
  32. Java SimpleDateFormat format time as AM PM
  33. Java SimpleDateFormat format time zone as "PST", "Pacific Standard Time", "-0800"
  34. Java SimpleDateFormat format year as "99" and "2099"
  35. Java SimpleDateFormat parse String like "2018-04-03 09:10:40.325" to date
  36. Java SimpleDateFormat parse String like "2018-10-12 12:42:12" to date
  37. Java SimpleDateFormat parse String like "2020-02-13" to Date
  38. Java SimpleDateFormat parse String to date with offset
  39. Java SimpleDateFormat change time String format
  40. Java SimpleDateFormat create file name
  41. Java SimpleDateFormat get UTC Time String
  42. Java SimpleDateFormat get Today's date
  43. Java SimpleDateFormat parse String like "28/10/1965" to Date
  44. Java SimpleDateFormat parse String like "31/10/2020 12:30:15" to Date