> NSTimestampFormatter also understands the SimpleDateFormat pattern symbols. > Just use the SimpleDateFormat symbols for both. Does it work only for 5.4 or also for earler versions of WO?
Gennady 2008/7/9 Chuck Hill <[EMAIL PROTECTED]>: > > On Jul 8, 2008, at 3:59 PM, Gennady Kushnir wrote: > >> Hello list! >> As mentioned in WO 5.4 documentation NSTimestampFormatter class is now >> deprecated. >> They recommend using java.text.SimpleDateFormat instead. Pattern >> formats for NSTimestampFormatter and SimpleDateFormat a different. >> But when binding WOString and WOTextFiend it still takes patterns for >> dateFormat in old NSTimestampFormatter style. >> >> I want to store and reuse some global setting for date format pattern. >> But now I have to either use different patterns for WOD bindings and >> programmatic use >> or rely on deprecated NSTimestampFormatter and get warnings each time. > > > NSTimestampFormatter also understands the SimpleDateFormat pattern symbols. > Just use the SimpleDateFormat symbols for both. > > Also note that unlike NSTimestampFormatter, SimpleDateFormat is not thread > safe. At least NSTimestampFormatter is not documented to be non-thread > safe. > > > Chuck > > -- > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
