Class DateTimeFormatter

    • Constructor Detail

      • DateTimeFormatter

        public DateTimeFormatter()
    • Method Detail

      • format

        public static String format​(LocalDateTime dateTime,
                                    Locale locale)
        Format the given local time using the given locale.
        Parameters:
        dateTime - the date and time to format
        locale - the locale to use to determine the format
        Returns:
        a formatted string