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 -

php - MySQLi multi_query results for later use -