Re: NSDate's descriptionwithLocale method output
Re: NSDate's descriptionwithLocale method output
- Subject: Re: NSDate's descriptionwithLocale method output
- From: Arun <email@hidden>
- Date: Tue, 25 Nov 2008 23:42:17 +0530
Hi Nick,
Thanks for the suggestion. But i have a requirement where in if the user
changes the format of date and time in
the system, the same format should be presented back to him. So i thought
descriptionWithLocale will take care of
the change user makes to his settings. So if i use NSDateFormatter, how will
handle this situation.?any clues?
Thanks
Arun
On Tue, Nov 25, 2008 at 10:47 PM, Nick Zitzmann <email@hidden> wrote:
>
> On Nov 25, 2008, at 9:56 AM, Arun wrote:
>
> I have an NSDate object and if i call descriptionwithLocale method, i am
>> getting a NSString * which upon printing gives Date and time time in the
>> format set by the user.
>> In that string at the end it gives Info abot timezone also like +GMT
>> 05:30.
>> So if i need to takeout the timezone information from the string what is
>> the
>> best wat of doing it?
>>
>
>
> Use NSDateFormatter to get a formatted date string in exactly the way you
> want.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden