All pastes #2381 Raw Edit

Anonymous

public text v1 · immutable
#2381 ·published 2004-11-26 17:42 UTC
rendered paste body
import java.util.Date;
import java.text.*;

public class dates
{
    // instance variables - replace the example below with your own
    private Date today;
    private String dateOut;
    private DateFormat dateFormatter;
    
    public dates()
    {
    }

    public void sampleMethod(String name, Date today)
    {
        dateFormatter = DateFormat.getDateInstance(DateFormat.SHORT);
        dateOut = dateFormatter.format(today);
        System.out.println(dateOut);
    }
}