Afficher la date en format moyen

Author:


{filelink=5939}


import java.text.MessageFormat;
import java.util.Date;

public class FormatCourt {
  public static void main(String[] argv) throws Exception {
    Object[] data = new Object[] { new Date()};
    String msg = MessageFormat.format("Date {0,date,medium}", data);

    System.out.println(msg);
  }
}

A Voir sur le même Sujet:

  • java.text.messageformat time medium

Leave a Reply

Your email address will not be published. Required fields are marked *