• 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
Re: nstimestampformatter error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nstimestampformatter error?


  • Subject: Re: nstimestampformatter error?
  • From: James Cicenia <email@hidden>
  • Date: Sat, 30 Oct 2010 14:53:20 -0500

Ok -

I changed to use the routine you suggested.... still off. And if you notice the adding does work fine. It is 
this code that is returning a bad date:

public static NSTimestampFormatter formatterToDay=new NSTimestampFormatter("%m/%d/%y");
public static String formatTimestampToDay(NSTimestamp date){
return date!=null?formatterToDay.format(date):"";
}


And as for how beginDate is created,... it is being created with timezone support:
    beginDate = new NSTimestamp(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH) + 1, calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0, NSTimeZone.getDefault());

Any other thoughts?
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: nstimestampformatter error?
      • From: Chuck Hill <email@hidden>
References: 
 >nstimestampformatter error? (From: James Cicenia <email@hidden>)
 >Re: nstimestampformatter error? (From: Chuck Hill <email@hidden>)
 >Re: nstimestampformatter error? (From: Ramsey Lee Gurley <email@hidden>)

  • Prev by Date: Re: ERAttachment Auto Scaling Configuration Option
  • Next by Date: Re: ERAttachment Auto Scaling Configuration Option
  • Previous by thread: Re: nstimestampformatter error?
  • Next by thread: Re: nstimestampformatter error?
  • Index(es):
    • Date
    • Thread