• 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
Strings and Timestamps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strings and Timestamps


  • Subject: Strings and Timestamps
  • From: "Y.A.Espinoza" <email@hidden>
  • Date: Sun, 11 Jan 2004 19:10:55 -0700

I've seen any number of questions about this topic, but since I can't figure it out on my own...

I've got a datetime column in my database. In my model, I internally call it a String and leave it datetime externally. The reason I do this is because I use a fetch spec to call up today's event: Date = "current_date". I don't know that the datetime equivalent of that is, so by calling the column a string, I can get around it and the fetch spec works.

Anyway, I want dates to appear as "Monday, Jan 1, 2004" rather than "2004-01-01." I know I can use a formatter to do this, but that only seems to work with a column that is a datetime. Now, I've seen examples with a Timestamp to a String, but it seems that what I'm looking for is to display a String as a Timestamp.

Or, is there just an easier way to call up the current date in a fetch spec rather than resorting to all of this?

Thanks for any and all suggs,

Ari
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Strings and Timestamps
      • From: Ricardo Strausz <email@hidden>
    • Re: Strings and Timestamps
      • From: Ray Ackland <email@hidden>
    • Re: Strings and Timestamps
      • From: Drew Thoeni <email@hidden>
  • Prev by Date: Re: Eclipse WOLips IDE Opinions
  • Next by Date: EOModeler and more
  • Previous by thread: Re: EOModeler
  • Next by thread: Re: Strings and Timestamps
  • Index(es):
    • Date
    • Thread