• 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
Display Correct Date and Time from Oracle DB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Display Correct Date and Time from Oracle DB
      • From: shaun <email@hidden>
    • Re: Display Correct Date and Time from Oracle DB
      • From: Robert Walker <email@hidden>
  • Prev by Date: Re: Eclips, .string files, and default encoding
  • Next by Date: Re: Display Correct Date and Time from Oracle DB
  • Previous by thread: Re: ERX MARKER/Fix Classpath
  • Next by thread: Re: Display Correct Date and Time from Oracle DB
  • Index(es):
    • Date
    • Thread