convert String of length 24 to byte array of length 4 bytes
<pre><code>  public static void main(String[] args){
     Date localRecvTime = new Date();           
     DateFormat converter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
     converter.setTimeZone(TimeZone.getTimeZone("GMT"));           
     String ConvertedDate =converter.format(localRecvTime);
     System.out.println(ConvertedDate.length());
     //above statement will print 24

     byte[] dateInBytes=ConvertedDate.getBytes();
     System.out.println(dateInBytes.length);
     //above statement will also print 24       

    }
</code></pre>

<p>The above code works fine.
But i want to limit the size of byte <code>array(ie. byte[] dateInBytes)</code> to 4 bytes according to my requirements.
Is it possible to do that?  </p>
