09-12-2013 07:01 AM
In blackberry java application development is there any way to get Weekday name from a date (format yyyy/mm/dd ).
I have a date like 2013/09/15. I want the output like Sunday
Thanks and Warm Regards.
Solved! Go to Solution.
09-12-2013 07:15 AM
hi, few months back i have asked the same question in the forum and i'm sure you can found the answer in this thread http://supportforums.blackberry.com/t5/Java-Develo
09-12-2013 09:22 AM
Thanks Achin fo reply...
I am posting my code for help...It can be used to get Weekday name for a date string.
//SimpleDateFormat write = new SimpleDateFormat("EEEE-MMM-dd");//It will return Weekday name as full plus monthe name plus date SimpleDateFormat write = new SimpleDateFormat("EEEE");//It will return Weekday name Date date = new Date(HttpDateParser.parse("2013/09/12")); System.out.println(write.format(parsedDate));