On 02 Feb 2014, at 10:44, Norbert Hartl <norbert@hartl.name> wrote:
Now that example should work:
(ZTimestampFormat fromString: 'Saturday, 3 February, 2001') german; format: Date today.
=> 'Samstag, 1 Februar, 2014â
Does ZTimestampFormat handle the formatting of the date? If so then for germany it would be
Samstag, 1. Februar 2014
ZTimestampFormat works 'by example', substituting known keys for actual values, possibly translated. It cannot reorder the specification. So it does not properly handle locale. But you could work around this limitation a bit by adjusting the format to the locale. In the above example: (ZTimestampFormat fromString: 'Saturday, 3. February 2001') german; format: Date today. should do the trick. Sven