title: How we can convert yyyy-MM-dd-HH.mm.ss.SSSSSS to yyyy-MM-dd'T'HH:mm:ss.SSSz in Java?
body: <p>Can anybody let me know,how we can convert date in <code>yyyy-MM-dd-HH.mm.ss.SSSSSS</code> format to date in  <code>yyyy-MM-dd'T'HH:mm:ss.SSSz</code> in Java,where in both input and output dates should be Strings.</p>
  
  <p>I have used apache <code>DateFormatUtils</code> but that does not give milliseconds in the output.</p>