/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.MessageFormat;
import java.text.FieldPosition;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Locale portugal = new Locale("pt");
            	Locale brazil = new Locale("pt", "BR");
            	Locale france = new Locale("fr", "FR");
            	
            	Object[] params = new Object[] {new Date()};
            	String pattern = "Today is {0,date,long}!";
            	
            	MessageFormat ptFormat = new MessageFormat(pattern, portugal);
		MessageFormat brFormat = new MessageFormat(pattern, brazil);
		MessageFormat frFormat = new MessageFormat(pattern, france);
		
		StringBuffer ptResult = ptFormat.format(params, new StringBuffer(), new FieldPosition(0));
		StringBuffer brResult = brFormat.format(params, new StringBuffer(), new FieldPosition(0));
		StringBuffer frResult = frFormat.format(params, new StringBuffer(), null);
		
		System.out.println("Portugal result: " + ptResult.toString());
		System.out.println("Brazil result: " + brResult.toString());
		System.out.println("France result: " + frResult.toString());
	}
}