Click to See Complete Forum and Search --> : properties files


jrthor2
03-23-2007, 10:24 AM
I have an application where I don't want to show something in my left navigation until a certain date. I want to be able to change this date in a properties file so that I don't have to redeploy my entire application, and I can just restart my project. Could someone supply me with some code that will take the current date and read the date in the properties file, and if the current date is before the properties date, return a false boolean, else return a true boolean?

Thanks!

LukeJea
03-25-2007, 11:38 AM
do you need help with reading and writing to files or do you need help on creating date classes? What you are requesting requires alot of work and code.

http://www.javaworld.com/jw-12-2000/jw-1229-dates.html

java world has a pretty good explaination on how to calculate dates.