-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I used dateformatter, Its formatted the date field, but in calendar left side time fields are not getting changed. I want to change that fields to 12 hrs time format. Is it possible to change it? Please reply soon...
Hello Chezhiyan,
You have to change HH to hh as shown bellow:
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/mm/yyyy hh:mm:ss a");
Letter | Date or Time Component | Presentation | Examples
---------------------------------------------------------
H | Hour in day (0-23) | Number | 0
h | Hour in am/pm (1-12) | Number | 12
Best Regards,
Darksu
Asked: 2014-10-16 07:13:16 +0800
Seen: 14 times
Last updated: Oct 27 '14
Hi Have you found the solution. If so, can you post the code
Senthilchettyin ( 2015-02-28 17:04:43 +0800 )edit