Sorry but i guess this is a java related issue only..Vic Hood wrote:Please post in the right forum
Thanks Jesper de Jong..Jesper de Jong wrote:See this: Eastern Standard Time which explains that EST is UTC -5 hours.
(Note: GMT is practically the same as UTC. See GMT and Other Time Systems Explained for the details).
Paul Clapham wrote:Sure, I could give it a try. Post your code.
yeah I totally agree with you.. but if we try to generate it from eclipse it will give the implementation file also.. My question is if eclipse is able to generate the impl file based on the the WSDL given then why its not possible through wsconsume ant build? (please correct me if i am wrong as I am new to webservices..Ivan Krizsan wrote:Hi!
The service implementation will never be generated - it is not possible to tell how the service is to be implemented from only examining the WSDL.
There is still some work left for us software developers to do, despite all the good tools of today!
Best wishes!
yes It was my mistake actually, what i need is formatted date only.. after googling i found lots of answers but still i am not able to fix it..Paul Clapham wrote:You can't convert a date from timezone A to timezone B, because a date doesn't have a timezone in the first place. So the question is meaningless.
You can certainly format a date to appear in timezone B, though. You already know how to do that: use a SimpleDateFormat, set its timezone to B, and use it to format the date. So just do that part.
yes..Campbell Ritchie wrote:So you would have a String in this format?
2011-07-29 03:54:21 pm
Campbell Ritchie wrote:... and welcome to the Ranch
Campbell Ritchie wrote:What sort of format is AppConstants.Common.EST_DATE_FORMAT?
Why are you using EST to read the format if you want to convert it from GMT? Shouldn't you use a GMT type format there?
If you are reading a timestamp from a database, why do you need to convert it to a Date or Calendar object at all? Doesn't the database return a Timestamp object?