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. This class' factory methods return appropriately-localized DateFormat instances, suitable for both formatting and parsing dates. For the canonical documentation of format strings, see SimpleDateFormat.
The format methods in this class takes as inputs a format string and a representation of a date/time. The format string controls how the output is generated. This class only supports a subset of the full Unicode specification. Use SimpleDateFormat if you need more. Formatting characters may be repeated in order to get more detailed representations of that field. For instance, the format character 'M' is used to represent the month. Depending on how many times that character is repeated you get a different representation. For the month of September: M -> 9 MM -> 09 MMM -> Sep MMMM -> September The effects of the duplication vary depending on the nature of the field. See the notes on the individual field formatters for details. For purely numeric fields such as HOUR adding more copies of the designator will zero-pad the value to that number of characters. For 7 minutes past the hour: m -> 7 mm -> 07 mmm -> 007 mmmm -> 0007 Examples for April 6, 1970 at 3:23am: "MM/dd/yy h:mmaa" -> "04/06/70 3:23am" "MMM dd, yyyy h:mmaa" -> "Apr 6, 1970 3:23am" "MMMM dd, yyyy h:mmaa" -> "April 6, 1970 3:23am" "E, MMMM dd, yyyy h:mmaa" -> "Mon, April 6, 1970 3:23am& "EEEE, MMMM dd, yyyy h:mmaa" -> "Monday, April 6, 1970 3:23am" "'Noteworthy day: 'M/d/yy" -> "Noteworthy day: 4/6/70" ----- Best Android Tablets -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Android-Text-Format-DateFormat-GetDateFormat-is-missing-tp5712953p5713069.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
