i m creating date format like this :
SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE, h:mm a");
i need a new line between date, month and time something like this
thus ,sep 6
4:25pm
so i made the following changes :
SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,"+"\n"+" h:mm a");
it did not give me anything just it created it in one line like this :
thus ,sep 6 4:25pm
so i took format object like this
SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,");
SimpleDateFormat sdf1 =new SimpleDateFormat(" h:mm a");
and did this :
sdf.format(calendar.getTime())+"\n"+sdf1.format(calendar.getTime())
but it again gives the same result
thus ,sep 6 4:25pm
calendar is a Calendar object.Any help will be appreciated!!