new java.sql.Date(System.currentTimeMillis()+(86400000*14))
java.sql.Date class has a constructor with long parameter.
To find the "today" we put the System.currentTimeMillis() method.But since you want the 14 days ahead, then you should calculate it in milliseconds.One day is 86400000 mseconds and System.currentTimeMillis()+(86400000*14) is your desired result.
Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.