• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date parsing question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date parsing question...


  • Subject: Re: Date parsing question...
  • From: "Sailesh Agrawal" <email@hidden>
  • Date: Tue, 28 Oct 2003 17:28:18 -0400

This might work:

NSCalendarDate *today = [NSCalendarDate
dateWithString:@"20031028180309"
calendarFormat:@"%YmdHMS"];

If not you could try hacking it. i.e. delimit the string your self and
then call dateWithString.

good luck!
Sailesh

On Tue, 28 Oct 2003 19:09:22 +0100, "Daniele M." <email@hidden>
said:
> hello, I have a string like this 20031028180309 (it's a date:
> 2003/10/28 18:03:09). I have tried to parse it using dateWithString and
> dateWithNaturalLanguage...but with null/wrong result. Is there a method
> to parse it?
>
> thx
> daniele
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • RE: Date parsing question...
      • From: "Jonathan E. Jackel" <email@hidden>
References: 
 >Date parsing question... (From: "Daniele M." <email@hidden>)

  • Prev by Date: Re: How to switch language (nib)
  • Next by Date: Re: Passing Obj-C method as callback to C function
  • Previous by thread: Re: Date parsing question...
  • Next by thread: RE: Date parsing question...
  • Index(es):
    • Date
    • Thread