On 26/06/07, Shervin Asgari <[EMAIL PROTECTED]> wrote:
> I tried
> DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd");
> but System.out.println(fmt); only writes the memory allocation :-/

If you want to use a formatter, you need to invoke it.

DateTime datetime = ...
DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd");
System.out.println( fmt.format(datetime) );

Stephen

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to