what the heck
yesterday the cost of java head first was 328/--
and today it is 413!!!!
should i wait for the prices to fall again?
seriously life is pain
Hi all,
I am developing an application using Java Swing. I am stuck somewhere. I need to display a date in a textbox and that date is fetched from MsAccess table, i am able to display that date in textbox but the format is not which i want. Date displayed is in the form e.g "2011-12-25 00:00:00" but i want it to be as "25/12/2011". the date in the table is in form "25/12/2011" with date type.
If anyone know this please help me.
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat formateDB = new SimpleDateFormat("yyyy-MM-dd");
String your_date = "2011-12-25 00:00:00";
System.out.println(sdf.format(formateDB.parse(your_date)));
I have used Python a bit and there is a nice feature that you can easily control Strings like
Hello * 3 = HelloHelloHello
however how to do so in Java.
Plzz Help!!!
System.out.println(((char) 27)+"[2J");
Don't use an IDE. Simply use an advanced text editor.