Note that a time zone is crucial as for any given moment the date varies around the globe. To get today’s date, use the LocalDate class. String output = ( TextStyle.FULL, Locale.CANADA_FRENCH ) The Locale object specifies a human language to be used in translation, and specifies cultural norms to decide issues such as capitalization and punctuation. This enum includes the getDisplayName method to generate a String of the localized translated name of the day. The days are numbered according to the standard ISO 8601 definition, 1-7 for Monday-Sunday. The java.time classes built into Java 8 and later and back-ported to Java 6 & 7 and to Android include the handy DayOfWeek enum. getDisplayName( TextStyle.FULL, Locale.CANADA_FRENCH ) LocalDate.now( ZoneId.of( "America/Montreal" ) )
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |