Cant getting your exact problem but if you seen?this?then you must getting that, you should use "a" in date format for dealing with "AM / PM"
And be sure, when you are using "a" for getting am/pm, your hours format should be in "hh" (i.e 12 hour foramat) not in "HH" (i.e 24 hour format). Let us know if you need more help..
2016-08-11
hour = calendar.get(Calendar.AM_PM);??? 改成這樣就能行了
2016-08-01
遇到了同樣的問題.
2016-07-04
Cant getting your exact problem but if you seen?this?then you must getting that, you should use "a" in date format for dealing with "AM / PM"
And be sure, when you are using "a" for getting am/pm, your hours format should be in "hh" (i.e 12 hour foramat) not in "HH" (i.e 24 hour format). Let us know if you need more help..
2015-08-24
你好,請問你解決了嗎?我也遇到這個問題。