Re: NSTimestamp
Re: NSTimestamp
- Subject: Re: NSTimestamp
- From: Bogdan Zlatanov <email@hidden>
- Date: Tue, 02 Dec 2014 11:55:20 +0100
NSTimestamp deplDate = new
NSTimestamp(dateFormat.parse(stringDate));
Cheers
On 02/12/2014 11:48, Thomas LATTER
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>) |