Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2007, 05:01 PM
Member
 
Join Date: Jul 2007
Posts: 32
valery is on a distinguished road
how to get the current date and time
I want to get the current date and time of US and Canada. Since the current locale is Canada, I can get the current date of Canada. Is it possible to get US date and time through some logic? Or the current Canada time has to be converted to US?
Please help me.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-03-2007, 07:05 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
Is it possible to get US date and time
See the TimeZone class. Calendar has a setTimeZone method.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between current date and anothe date vijay balusamy New To Java 1 04-16-2008 05:15 PM
Inserting current date into a DB table Java Tip Java Tips 0 02-15-2008 09:38 AM
Getting current date using dual (Oracle) Java Tip Java Tips 1 02-13-2008 05:46 PM
Date/Time Servlet Java Tip Java Tips 0 01-14-2008 10:34 AM
Time and Date in Java java_fun2007 New To Java 4 11-06-2007 08:25 PM


All times are GMT +3. The time now is 12:15 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org