cocoa - Get the local date format as a string -
this question has answer here:
- date formats device based on locale 5 answers
i want method returns local date format string.
e.g., method return string "dd/mm/yyyy" uk users , "mm/dd/yyyy" usa users.
what looking nsdateformatter
's dateformatfromtemplate:options:locale: method. takes template containing elements of date wish included , returns appropriate format supplied locale.
Comments
Post a Comment