Interface DateTimePrinter

    • Method Detail

      • print

        String print​(FormatStyle dateStyle,
                     FormatStyle timeStyle)
        Print with specified FormatStyles. Check here for all possible styles. The dateStyle will be used for the date part, the timeStyle for the time part.
        Parameters:
        dateStyle - the formatter style to use for the date part, not null
        timeStyle - the formatter style to use for the time part, not null
        Returns:
        the date as a string based the both styles