I have a timestamp which I have retrieved from database.
For ex:
Timestamp acceptedDate = 2014-10-27 13:39:50;
Now I want to get time part of the timestamp in a different variable and date part of the timestamp in a different variable and also the time should be a 12 hour clock. How can achieve this?