Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Convert date with timezone into UTC

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Convert date with timezone into UTC

    Hi,

    How can I convert current java.util.Date with timezone into UTC format in java?


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Convert date with timezone into UTC

    What have you tried? Have you taken a look at the Date API? And what exactly do you mean by UTC format?

    Hint: You might want to take a look at the DateFormat class.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. TimeLag between private internet provider to my EST timezone server
    By bhanuvijay10 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 11th, 2012, 05:31 PM
  2. Parsing a full date/time/timezone date to "yyyy-MM-dd"
    By Occidentally in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 4th, 2012, 08:57 AM
  3. Replies: 1
    Last Post: July 22nd, 2011, 07:08 AM
  4. UTC Dates
    By PedroCosta in forum Java Theory & Questions
    Replies: 4
    Last Post: April 1st, 2010, 11:39 AM
  5. a litle help on how to convert date to day
    By george in forum Algorithms & Recursion
    Replies: 6
    Last Post: March 18th, 2010, 06:18 PM