Posted on 2004-10-10
I actually have 3 questions with date formats , can someon tell me how to do following
1) I need to display just current month and year on my JSP, like for this month display should be exactly "October, 2004. " , also i have to display with date at an other place like "October, 10 2004"
2) I get Date as a string in format (MM/DD/YYYY)e.g 10/10/2004. I need to convert it again to just Month and Year format like October, 2004.
3) Same as question 2, but in this case i get java.util.Date object instead of String.
I think these are easy but i have never worked with dates and formats..
Thanks in advance