how to make a custom date format which will change the MMdd order base on the Locale (US or GB)

前端 未结 0 1769
醉梦人生
醉梦人生 2021-02-02 04:10

We know US and GB have different date order. US is MM DD YYYY but GB is DD MM YYYY.

With SimpleDateFormat() class, we can define our pattern, for example "MM.dd.yyyy

相关标签:
回答
  • 消灭零回复
提交回复
热议问题