Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using Date from/to String

 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i'm trying to get an input from my web application of time and date as Strings and connect them to one Date object and the reverse action form the DB as Date object to two Strings of date and time and i don't understand clearly how to do it in a specific format and if i can translate the time in one zone to another zone just by changing the zone and if it can do how can i do it...

10x ahead,
netanel
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in multiple forums. I did you the courtesy of deleting the extra copy in the Intermediate forum.
 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.util.Calendar and java.text.SimpleDateFormat classes have methods for changing the time zone and formatting/parsing dates. Have you looked at those?
 
Junilu Lacar
Bartender
Pie
Posts: 7320
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the examples in the Java Almanac
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic