04-13-2013 03:00 AM
I need datetime in the above given format.
I dont how to achieve this using simple date format.
I need to send this in Http Heder while calling a web service.
Please suggest something.
04-13-2013 04:42 AM
Can you give us an example of what you have tried and why it is failing?
Looking at the documentation for SimpleDateFormat what you want looks achieveable so I would like to understand what is causing you a problem.
04-13-2013 04:48 AM
04-13-2013 07:30 AM
Sorry I am struggling to sort out what your code is doing. There seems to be loads of code in here that is not relevant to your problem. Can you give us a small self contained snippet that demonstrates the problem - 3 or 4 lines should be able to do it.
But looking at your output, it seems you have the formatting all OK, the issue appears to be the zzz. Is that correct? Have you tried various lengths of 'z'? What is the local time zone? What is the Time Zone you want to have in the time you send?