I have used some calender usage etc(using some ones posting from the web) Following is my code: Calendar dateCreated = Calendar.getInstance(new Locale("en","US")); SimpleDateFormat df = new SimpleDateFormat("yyyy"); // apply the format object to the calendar object. String formattedDate = df.format(dateCreated.getTime());
But it is giving me bad date. Can some body suggest some thing easier. Kishore.
Kishore, you have already posted this exact same question here Please post your question only one time and in one forum. Many people read multiple forums and it wastes time and space to have to keep track of multiple answers in different threads. Thanks!