Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   How to get Current date from computer in java (http://www.go4expert.com/forums/current-date-computer-java-t29683/)

sandesh17 5Jun2013 16:52

How to get Current date from computer in java
 
How to get current in java? Not from system's date because anyone can change it....
I want current to validate my application expiry...please help me...thanx in advance...

Exquisite 6Jun2013 05:15

Re: How to get Current date from computer in java
 
Are you on javascript or java

shabbir 6Jun2013 09:49

Re: How to get Current date from computer in java
 
Quote:

Originally Posted by Exquisite (Post 99668)
Are you on javascript or java

Why do you think this is in JS?

sparticus 10Sep2013 03:26

Re: How to get Current date from computer in java
 
Unless you query an external time server, you will never know whether the given system time is accurate. This would require an internet connection however. I don't honestly think someone will change their system clock, which in turn will screw up a lot of other applications, to simply circumvent your application expiry logic.

ArnavKumar 30Oct2013 12:18

Re: How to get Current date from computer in java
 
You can use your database for this purpose. In this case your database will say your program what date is to pick and if you want to make some change it will be done in the database neither in the system nor in the program.


All times are GMT +5.5. The time now is 21:54.