java get date marker field(am/pm)
<p>I need to get the field AM/PM in date object. How can i get it?</p>

<p>This is my code.</p>

<pre><code>String startTime ="01:05 PM";
 SimpleDateFormat sdf = new SimpleDateFormat("hh:mm aa");

 Date st = sdf.parse(startTime);
</code></pre>
