Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
Java in General
problem with new Date()
Shimi Avizmil
Greenhorn
Posts: 16
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello all,
I have a strange problem that I cannot figure out and need your help.
I save a date in the database without time (i.e. 00:00:00), when i read it i get back (796600800000) Date=Fri Mar 31 01:00:00 IST 1995
Where the hell did the 01:00:00 come from ???
HELP !!!
TIA
Jeff Albertson
Ranch Hand
Posts: 1780
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Dates have no time zone (or assume GMT), but date's toString method uses your
JVM's default TimeZone.
There is no emoticon for what I am feeling!
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Date format issue
roll doesn't work properly
SimpleDateFormatter shows wrong hour?
Date class - GeekWatch
Can someone please help me parse this date
More...