Hi all,
I am trying to display the date and time.
I am using 'SimpleDateFormat' class.
---------------------------------------------------------------------------------------------------------------
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy hh:mm");
String dateStr = simpleDateFormat.format(new Date());
System.out.println(+dateStr);
----------------------------------------------------------------------------------------------------------------
It is out putting: 16 Feb 2012
02:56.
Is there any way to display the date as: 16 Feb 2012
14:56