Obtenir les Informations Locales

Author:


{filelink=920}

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;

import javax.swing.JOptionPane;

public class CalendrierGrec
{
  public static void main(String[] args) {
    Locale grec = new Locale("el", "CY", "CY");
    Calendar cal = Calendar.getInstance(grec);
    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, grec);
    String str = df.format(cal.getTime());

    JOptionPane.showMessageDialog(null,"Calendrier  Grecn"+ str);
  }
}

Leave a Reply

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