ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: T.Gopalakrishnan - gopal03 Control Statements 2003-09-04 03:06 Hello This is the scenario .i have the month number and i need to convert the number to the Month name. For example 1 to January,2 to Febuarary etc. i used if .. else but it not works Please give sample snippet for this Thanks By: Sachin Aggarwal - sk_aggarwal RE: Control Statements 2003-09-04 03:13 Hi, I think simplest will be to store the name of all months in correct order in a Vector and then corresponding to the month number you have fetch the String from it and display. Hope it works Sachin By: T.Gopalakrishnan - gopal03 RE: Control Statements 2003-09-04 04:42 Hai sachin can u give a sample snippet for iReport By: Gregory A. Swarthout - gswarthout RE: Control Statements 2003-09-04 09:35 java.text.DateFormatSymbols.getMonths()[month - 1]; By: T.Gopalakrishnan - gopal03 RE: Control Statements 2003-09-04 23:39 Thanks Gregory A. Swarthout and Sachin Aggarwal Its working Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now