Is there any way to format Date object to made fixed length of Day and Month in order to have good alignment in a column? For example:
15 May 2010 10 January 2010
Instead of
15 May 2010 10 January 2010
Thanks!
Is there any way to format Date object to made fixed length of Day and Month in order to have good alignment in a column? For example:
15 May 2010 10 January 2010
Instead of
15 May 2010 10 January 2010
Thanks!
Have a look at the java.util.Formatter class whose format method is the same as String.format(...) and similar to System.out.printf.
For example: