• 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
Date-Only NSTimestamps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date-Only NSTimestamps


  • Subject: Date-Only NSTimestamps
  • From: David Avendasora <email@hidden>
  • Date: Wed, 2 Jan 2008 15:01:25 -0500

Hi all,

I am working on some date-related calculations for a report. On the report the user specifies a date, and I want to match to a NSTimestamp-typed attribute in my Entity. The problem is that, of course, the attribute also contains time information which for this report is meaningless.

I've come up with a couple ways to achieve what I'm trying to do, and they seem to work, but they feel _very_ clunky and overly difficult, which brings me back to the old WO axiom: if it's hard, you're probably not doing it the WO-way.

So, what are the best practices for working with an NSTimestamp field, when all you really want is the date, not the time?

Thanks,

Dave
_______________________________________________
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: Date-Only NSTimestamps
      • From: "Pierce T. Wetter III" <email@hidden>
    • Re: Date-Only NSTimestamps
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Semantics of ^ in value bindings in .wod file.
  • Next by Date: Re: Date-Only NSTimestamps
  • Previous by thread: Re: Semantics of ^ in value bindings in .wod file.
  • Next by thread: Re: Date-Only NSTimestamps
  • Index(es):
    • Date
    • Thread