Strings and Timestamps
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.