How to convert 24 hour datetime to 12 hour datetime in java