the easiest way to add/substract java.sql.timestamp objects
is there a way to find out how many day/mins etc two different timestamp objects differ? e.g. today's date and tommorow's, or finding out tommorow's date based on current date?
You can to use a Date oblect to convert the timestamp to milliseconds.
You could the calculate date difference by substracting milliseconds and converting
back to yrs.mths.days:hrs:min:sec:ms
For finding next date just add the number of milliseconds for 24 hrs.
By Michael Cole in forum Database
Last Post: 04-02-2003, 03:06 PM
By Michael Cole in forum oracle.general
Last Post: 02-20-2003, 10:25 PM
By Jeff Pipes in forum .NET
Last Post: 05-15-2002, 10:17 AM
By Dave Fleischman in forum Enterprise
Last Post: 08-18-2000, 01:10 PM
By Oliver Lennon in forum Enterprise
Last Post: 04-18-2000, 12:30 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL