Re: Strings and Timestamps
Re: Strings and Timestamps
- Subject: Re: Strings and Timestamps
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 12 Jan 2004 13:49:28 -0600
Take a look to the last part of
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?
wikiPage=CocoaEOApplication
it may give you a clue...
Suerte!
Dino
On Jan 11, 2004, at 20:10, Y.A.Espinoza wrote:
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.
_______________________________________________
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.