date format - iOS setDateFormat bug with displaying hour -


i have code this:

[dateformat setdateformat:@"hh:mm"]; datehm = [dateformat stringfromdate:date]; 

i use datehm (nsstring) in stringwithformat:, , expected have displayed example 23:00, not 11:00. works right every time, app users getting 12-hours format am/pm added...

how possible? global user preferences make difference, or what?

learn date formatters , how interact nslocale reading apple tech note.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -