Yeah - I finally figured that out yesterday :-)

Thanks,

Michael

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen 
Colebourne
Sent: Saturday, May 31, 2008 1:37 AM
To: Discussion of the Joda project
Subject: Re: [Joda-interest] Unable to properly convert DateTime h:m string

What class is startDate? If it is a LocalDate then you won't be able to 
print the time.
Stephen

Michael Mehrle wrote:
> I tried that – still getting that same strange string: ��:�� �
> 
>  
> 
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of 
> *Stephen Cresswell
> *Sent:* Friday, May 30, 2008 7:01 PM
> *To:* Discussion of the Joda project
> *Subject:* Re: [Joda-interest] Unable to properly convert DateTime h:m 
> string
> 
>  
> 
> I may be completely misunderstanding what you are trying to do, but 
> wouldn't the following be easier...
> 
> String startDateString = startDate.toString("hh:mm a")
> 
> 2008/5/30 Michael Mehrle <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
> 
> This is how I am parsing my date object:
> String startDateString = 
> startDate.toString(DateTimeFormat.forPattern("hh:mh a"));
> ... and this is what I get:
> ��:�� �
> 
> Any help would be welcome - I'm pretty sure this how it's being done as 
> the same mechanism works without a problem outputting a regular date 
> (without the time).
> 
> Thanks,
> 
> Michael
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Joda-interest mailing list
> [email protected] 
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/joda-interest
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Joda-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/joda-interest

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to