• 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 to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date to string


  • Subject: Re: Date to string
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 28 Nov 2005 22:27:21 +0100


On lundi, novembre 28, 2005, at 10:04 AM, Uli Kusterer wrote:

Am 28.11.2005 um 07:17 schrieb JuanC:
The matter is that I need put a static text with the date of today in a window.
The best way sould be with the european format: DD-MM-YY (28 Nov. 2005).

There is no European format. Every country in Europe has their own. E.g. Germany has DD.MM.YY, Great Britain and France have DD/MM/YY (IIRC), etc. I've never seen the one you show here. It looks kind of like a reversed variant of ISO dates, which are YYYY-MM-DD. ISO dates are also the closest you can get to a "European" date (and are used in Sweden).


I don´t know what is the best way: NSDate or NSCalendar... for get the date and NSText or NSTextView... for draw the string.

That's pretty much the two approaches I'd suggest. There's also some sort of date/clock control. Carbon's had it since the Classic days, but I think Apple gave us one for Cocoa a while ago.

That's the NSDatePicker control and cell which are available starting with Tiger.


Which makes me think that a date version of the WBTimeControl is now available:

WBDateControl (http://s.sudre.free.fr/Software/DevPotPourri.html)

Maybe it can be useful to someone.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Date to string
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: Date to string (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Is Apple's singleton sample code correct?
  • Next by Date: Re: Date to string
  • Previous by thread: Re: Date to string
  • Next by thread: Re: Date to string
  • Index(es):
    • Date
    • Thread