Display Correct Date and Time from Oracle DB
Display Correct Date and Time from Oracle DB
- Subject: Display Correct Date and Time from Oracle DB
- From: Carter Wojcik <email@hidden>
- Date: Tue, 23 Jan 2007 05:59:46 -0800 (PST)
Hi All -
I have reversed engineered my model from an Oracle 10g
db. Most of the entities have date added and date
updated attributes (containing both date and time
pieces). I would like to display both the date and
time to the user (example: 22 Jan 2007 14:24).
Here is the information from the models plist:
columnName = "DATE_ADDED";
externalType = DATE;
name = dateAdded;
valueClassName = NSTimestamp;
valueType = D;
The columns are of type DATE in the database.
I am able to get the day, month, year to display
correctly using the supplied dateformat attribute in
wostring. Then when I want to just display the time
portion, midnight (00:00 or 12:00 AM) is displayed
even though there is an actual time in the database.
Thanks for any help/pointers.
Carter
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden