Two Laptop Bag*
The moose likes Java in General and the fly likes Regarding the date obtained using java.util.Date class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding the date obtained using java.util.Date class" Watch "Regarding the date obtained using java.util.Date class" New topic
Author

Regarding the date obtained using java.util.Date class

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hi,

i am using the date obtained using java.util.Date class for my application.What i would like to know is that whether it gives the system date or some other date??

Because if its system date then obtaining the current date like that is useless for me as the user can change the system date & enter some other date??

So if its system date then what i should do onbtain the current date which can't be changed by the user??

Thanks,
Jignesh


Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
You could have your code ask for the time on another machine.


There is no emoticon for what I am feeling!
 
Don't get me started about those stupid light bulbs.
 
subject: Regarding the date obtained using java.util.Date class