title: conversion from Date ojbect to Date object
body: <p>I have a requirement. I want to convert Date object to formatted Date object.</p>
  
  <p>I mean,</p>
  
  <pre><code>`Date d = new Date();System.out.println(d);' 
  </code></pre>
  
  <p><strong>Output:</strong>  Thu Apr 05 11:28:32 GMT+05:30 2012</p>
  
  <p>I want output to be like <strong>05/APR/2012</strong>. And the output object must be Date and not String.
  If at all you are not clear , I'll post more clearly</p>
  
  <p>Thank You.</p>