Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: print the date and/or time in French format

Java: print the date and/or time in French format
{filelink=738}

import java.util.*;
import java.text.*;
public class DateFrance
{
        public static void main(String[] argv)
        {
                Date date = new Date( );
                DateFormat format = DateFormat.getInstance( );
                // default format
                System.out.println(format.format(date));
               // Create french format
                DateFormat format_fr =
                        DateFormat.getDateInstance(DateFormat.FULL, Locale.FRENCH);
                // Apply the format
                System.out.println(format_fr.format(date));
        }
}

Users who found this page were searching for:

  • how to read int from keyboard java
  • python directory tree class
  • java create file and change mode
  • java csv pattern matcher
  • how to delete entries in a dictionary python
  • java format french date
  • python open file dialog
  • java dateformat french
  • apply a selfdefied function dataframe python

No comments yet.

Leave a Comment