Link to home
Start Free TrialLog in
Avatar of cutie_smily
cutie_smily

asked on

Piece of code for converting date and time depending on country's



For example , i place my latop in dubai

java code should display time and date of dubai (6/13/06 and time: 12:30p.m)

if united states (6/12/06 time:united states time)



Avatar of Mick Barry
Mick Barry
Flag of Australia image

You need to change the timezone your laptop is setup for.
Your java application will by default display the time using the current timezone.
ASKER CERTIFIED SOLUTION
Avatar of tbboyett
tbboyett
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, the OS time-zone has to be changed and Java will pick it up