0

Time Format Changes in Calendar

asked 2014-10-16 07:13:16 +0800

Chezhiyan gravatar image Chezhiyan
1 1

updated 2014-10-16 07:14:59 +0800

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...

delete flag offensive retag edit

Comments

Hi Have you found the solution. If so, can you post the code

Senthilchettyin ( 2015-02-28 17:04:43 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-17 22:34:22 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
0

answered 2014-10-22 09:43:06 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2014-10-27 08:40:09 +0800

You can set time format by DateFormatter, refer to this document

It also have this bug, please download the latest freshly version to change time label format.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-10-16 07:13:16 +0800

Seen: 14 times

Last updated: Oct 27 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More