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

custom formatter


  • Subject: custom formatter
  • From: Dev WO <email@hidden>
  • Date: Mon, 18 Jul 2005 13:20:23 +0200

Hi,
I'm not sure the subject is correct, but here's my problem:
I've got warranty validity information stored as weeks in the database. I'd like to display them in either week(s), month or year (s), but not like "3.5 month", I'd like the number to always be an integer (not rounded), so a 6 weeks warranty will be displayed "6 weeks" and a 4 weeks warranty will be dispayed "1 month".


Does anyone has a suggestion for this? I tried to dig into different date APIs (like the apache common and the java one), but I don't think it's the way to go...

Thanks

Xavier
_______________________________________________
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: custom formatter
      • From: LD <email@hidden>
    • Re: custom formatter
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Re: Access a private variable?
  • Next by Date: howto combine DirectActions with ComponentActions?
  • Previous by thread: Re: Webobjects-dev Digest, Vol 2, Issue 408
  • Next by thread: Re: custom formatter
  • Index(es):
    • Date
    • Thread