Formmating a date in Java?

Posted by Sergio Tapia on Stack Overflow See other posts from Stack Overflow or by Sergio Tapia
Published on 2010-06-03T00:38:06Z Indexed on 2010/06/03 0:44 UTC
Read the original article Hit count: 433

Filed under:
|
|

Here's my code:

Date aux = new Date();
TextField txtFecha = new TextField("Fecha:", aux.toString(dd/mon/yyyy), 50, TextField.ANY);

I'm trying to get my date to format like: "20/4/2010"

Thank you!

© Stack Overflow or respective owner

Related posts about java

Related posts about date