Java ZonedDateTime Format formatDateTime(ZonedDateTime zonedDateTime)

Here you can find the source of formatDateTime(ZonedDateTime zonedDateTime)

Description

format Date Time

License

Open Source License

Declaration

private static String formatDateTime(ZonedDateTime zonedDateTime) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class Main {
    private final static DateTimeFormatter DEFAULT_DATETIME_FORMATTER = DateTimeFormatter
            .ofPattern("dd/MM/yyyy kk:mm");

    private static String formatDateTime(ZonedDateTime zonedDateTime) {
        return DEFAULT_DATETIME_FORMATTER.format(zonedDateTime);
    }/*from  w w  w.j av a 2 s  .  com*/
}

Related

  1. formatDate(ZonedDateTime dateTime)
  2. formatDate(ZonedDateTime dt)
  3. formatDate_ddMMYYYYHHmmss(ZonedDateTime now)
  4. formatDateAsShortDateLocalTime(ZonedDateTime moonDate, ZoneId tz)
  5. formatDateForGMT(ZonedDateTime moonDate)
  6. formatZonedDateTime(ZonedDateTime zonedDateTime)
  7. getFormattedHour(ZonedDateTime dateTime)
  8. parseZonedDateTime(String s, DateTimeFormatter dtf)
  9. toStringExcelFormat(ZonedDateTime date)