mmww Posted October 27, 2009 Share Posted October 27, 2009 Hi,there is a constructor Timestamp(long) which I can't use. I get error:"Timestamp cannot be resolved to a type" of course my field is java.sql.Timestamp.I tried also new Timestamp(109,10,10,20,20,20,0) this alsow fail.any help? Or do you konw how to add some time (example 2hours) to Timestamp field ??? please, I really need it :) Link to comment Share on other sites More sharing options...
mmww Posted October 27, 2009 Author Share Posted October 27, 2009 Ok I've got it.. new java.sql.Timestamp Timestamp(long) now it's ok. now I got veriable Timestamp so it's no problem to add 2 hours :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now