cocoa - Get the local date format as a string -


this question has answer here:

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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -