A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Java in General
Change system date
Joined: May 25, 2001
Sep 17, 2001 14:03:00
Can anybody tell me if its possible to change the windows system date using
and if yes then how?
Joined: Dec 04, 2000
Sep 18, 2001 11:29:00
Java itself cannot change that type of property. However, if there is some dll which allows you to do it, you can access the methods through JNI.
Joined: Mar 06, 2001
Sep 18, 2001 18:29:00
...or if there is a command line arg you can cann to change the date, you can use Runtime.exec()...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Change system date
problem in date
Regarding the date obtained using java.util.Date class
Friday the 13th
JSP is recompiling on every request
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015