05-28-2011 10:32 AM
Hi, sorry if my questions sound silly but I'm a java newbie. I´ve searched thru the forum but i didn´t find the solution(or understand it).
I've a string sDate wich has the value of "Wed, 25 May 2011 05:20:20 GMT".
I want to get the year("2011"), the month("05"), the day("25") and hours, minutes and seconds separately.
For example I want to get string variable sMonth to have the value of "05", how should I do it?
thanks in advance
05-28-2011 10:55 AM
On the BlackBerry, if you can't use the HttpDateParser to convert your String to a Calendar or Date variable (read the Javadocs to see if you can), then you are going to have to write code to do this by hand. Sorry.