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]>:

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
Joda-interest@lists.sourceforge.net
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
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to