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

Java: How to get the TimeZone.

Java: How to get the TimeZone.
{filelink=6299}

import java.text.SimpleDateFormat;
import java.util.Date;
public class TimeZone
{
  public static void main(String[] args)
  {
    Date date = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("zzz");
    System.out.println("Timezone is: " + sdf.format(date));
  }
}

Users who found this page were searching for:

  • Java timezone in jpanel example
  • Java timezone in jpanel example

No comments yet.

Leave a Comment