Hi George,
you could try using this:
DateTime dt = session.createDateTime("Today");
String sCreatedDate = dt.getTimeOnly();
which will return the time as a string; if you have to you could then split this string into the Hour and AM/PM.
The DateTime class in Domino also includes a toString and toJavaDate method you could use if it's appropriate for your solution.
Regards Kjetil
Last Wiki Answer Submitted: April 27, 2005 1:35 am by Kjetil0 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Have a look at this
http://javacentered.blogspot.com/2006/04/getting-and-playing-with-date-in-java.html