001package edu.pdx.cs410J.datesAndText;
002
003import java.time.ZonedDateTime;
004import java.time.format.DateTimeFormatter;
005
006public class DateTimeFormatterExample {
007
008  public static void main(String[] args) {
009    DateTimeFormatter format = DateTimeFormatter.ofPattern(args[0]);
010    String formatted = ZonedDateTime.now().format(format);
011    System.out.println(formatted);
012  }
013}