On Thu, 17 Sep 1998, Bruce J. Carter wrote:
> Any help would be greatly appreciated.
This is how I set things for the time zone here in Melbourne Australia.
Hope this helps.....
import java.util.Calendar;
import java.util.TimeZone;
import java.text.SimpleDateFormat;
public class DateTimeThingy
{
public static void main(String[] args) throws Exception
{
Calendar calendar;
SimpleDateFormat dateformatter;
String systemDate;
TimeZone timeZone;
timeZone = TimeZone.getTimeZone("AET");
dateformatter = new SimpleDateFormat("EEEE HH:mm:ss, MMMM d, yyyy");
dateformatter.setTimeZone(timeZone);
calendar = Calendar.getInstance();
systemDate = dateformatter.format(calendar.getTime());
System.out.println(systemDate);
}
}
Chris
Dynamic Solutions Pty Ltd http://www.dynamic.net.au
414 Gilbert Road [EMAIL PROTECTED]
Preston, Victoria 3072 61 3 94718224 - voice
Australia 61 3 94711622 - fax