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

Comparing dates


  • Subject: Comparing dates
  • From: Chad Armstrong <email@hidden>
  • Date: Sat, 28 Feb 2004 12:54:01 -0600

I'm working on some beta software and I want it to expire after a certain date. The last time I tried this, it would occasionally expire before the selected time, and I could not find out why this was happening. What would be the best method to do this? I am assuming that NSCalendarDate might be the way to go.

To wrap things up, here is some pseudo code of what I'm trying to accomplish:

expiration_date = "April 16 2004 0:00";

if (current_date isLaterThan: expiration_date)
{
// your taxes are late!
}

Regards,

Chad Armstrong
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Comparing dates
      • From: John Cate <email@hidden>
  • Prev by Date: Re: US / British English Localisations
  • Next by Date: Controlling soft page breaks in multiple text views
  • Previous by thread: NSSpliteView in Xcode Help UI
  • Next by thread: Re: Comparing dates
  • Index(es):
    • Date
    • Thread