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

Re: NSTimestamp


  • Subject: Re: NSTimestamp
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 02 Dec 2014 12:36:45 +0000
  • Thread-topic: NSTimestamp

NSTimestampFormatter. Ignore the deprecation.

Chuck Hill
Gevity Consulting Inc.

Sent from my mobile device.

> On Dec 2, 2014, at 5:49 PM, Thomas LATTER <email@hidden> wrote:
>
> Hi, what is the simplest way these days to convert a string or Date to NSTimestamp ?
>
> I can't seem to use SimpleDateFormat because java.util.Date cannot be cast to com.webobjects.foundation.NSTimestamp ...
> String stringDate = "01/01/2014";
> SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
> NSTimestamp deplDate = (NSTimestamp) dateFormat.parse(stringDate);
>
> Thanks in advance,
> tom
> _______________________________________________
> 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

 _______________________________________________
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


References: 
 >NSTimestamp (From: Thomas LATTER <email@hidden>)

  • Prev by Date: Re: NSTimestamp
  • Next by Date: Re: Objects disappeared (was: "Static" objects in EC (was: multi-instance sync woes))
  • Previous by thread: Re: NSTimestamp
  • Next by thread: Saving and Retrieving Query Bindings
  • Index(es):
    • Date
    • Thread