I was reading the documentation for the android.text.format.DateFormat class on the Android developers website (located at http://developer.android.com/reference/android/text/format/DateFormat.html) in order to learn more about it. Specifically I am trying to format a date to be human readable so I found the format(CharSequence inFormat, Date inDate) method and thought that I would use this. Now most examples that I have been able to find for using this method look similar to this: android.text.format.DateFormat.format("MM/dd/yyyy", new java.util.Date());
However the documentation states:
Most callers should avoid supplying their own format strings to this class' format methods and rely on the correctly localized ones supplied by the system.
It is from this line that my confusion and questions arise.
1.) The documentation does not appear to state (at least I was unable to find it anywhere despite my hardest searching) how to access the correctly localized strings that it says that the system provides. How is this accomplished?
2.) Is it acceptable (despite what the documentation says) to provide your own format string as in the example line above?
Thanks in advance for your help!