title: Joda Date-Time: Capture Date time(UTC) and convert to byte/byte array
body: <p>I am writing an application in which I have to capture the current date time in UTC and it to the Header of an image file.</p>
  
  <p>I am using Joda date-time. Now the requirement is to get the current date time in UTC and convert it to byte byte/byte array so that it can be stored as the hexadecimal values in header of image file.</p>
  
  <p>What I have tried so far</p>
  
  <pre><code>DateTime date = new DateTime().withZone(DateTimeZone.UTC).
                  withChronology(ISOChronology.getInstanceUTC());
  </code></pre>
  
  <p>It is giving me this output:</p>
  
  <pre><code>2013-06-07T09:25:51.630Z
  </code></pre>
  
  <p>I dont know why there is T and z there in output.</p>
  
  <p>Now I have to convert it to bytes/bytes array. But I am not getting how to do that.</p>
  
  <p>Any Help?</p>
  
  <p><strong>EDIT:</strong>
  As per the standard I am following they have given an example of result after converion</p>
  
  <p>December 15,2005 at 17:35:19.000 ==> 07D5 0C 0F 11 23 13 0000Hex</p>