SimpleDateFormat: Afficher le nom du jour

Author:

SimpleDateFormat:,Obtenir,le,nom,du,jour
{filelink=5602}


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

public class NomDuJour
{

  public static void main(String[] args)
  	{
    Date date = (new GregorianCalendar()).getTime();
    System.out.println(new SimpleDateFormat("EEEE").format(date));
  }
}

Leave a Reply

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