Tuesday, June 1, 2010

Format Date in Xcode

By default, when using the field DATE in Xcode, the date is in month/day/year format. In order to change the format you could type in the terminal a command of the following form:

defaults write com.apple.xcode AppleICUDateFormatStrings '{ 1 = "d-MMM-yyyy"; }'

A good source for what fields can be used in Xcode templates see this link