I have this:
integeres = "1495022669";
I want the output:
"May 17"
How can I achieve it? I tried several answers on internet but couldn't get success.
Edited
i tried this code
level = 1495023057;
DateTimeZone timeZone = DateTimeZone.forID( "Asia/Karachi" );
DateTime dateTime = new DateTime( level, timeZone );
int dayOfWeekNumber = dateTime.getDayOfWeek(); // ISO 8601 standard says Monday is 1.
DateTimeFormatter formatter = DateTimeFormat.forPattern( "EEEE" ).withLocale( java.util.Locale.ENGLISH );
String dayOfWeekName = formatter.print( dateTime );
it gives me sunday .... but in my timezone it is wednesday. so i am stuck here , its i think joda time library that is why i am having wrong day name.
kindly help with suiteable answers.
Edited 2
solution
String dateAsText = new SimpleDateFormat("EEEE, dd MMMM")
.format(new Date(level * 1000L));