You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
474 B
Java
11 lines
474 B
Java
import java.text.DateFormat;
|
|
import java.util.*;
|
|
public class Main {
|
|
public static void main(String[] args) throws Exception {
|
|
Date d1 = new Date();
|
|
System.out.println("today is "+ d1.toString());
|
|
Locale locItalian = new Locale("it","ch");
|
|
DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, locItalian);
|
|
System.out.println("today is in Italian Language in Switzerland Format : "+ df.format(d1));
|
|
}
|
|
} |