Afficher la date en Format lettre

Author:

Afficher,la,date,en,Format,lettre
{filelink=5596}


import java.text.SimpleDateFormat;
import java.util.Date;

public class DateEnLettre {
  public static void main(String[] args) throws Exception
  {

    Date date = new Date();
    SimpleDateFormat dateFormat;

    dateFormat = new SimpleDateFormat("EEEE dd MMMMM yyyy kk:mm:ss");
    System.out.println(dateFormat.format(date));
  }
}

Leave a Reply

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