there is method in Calender class call set. This is a void method using this i set the date but i cann't display it. how can i convert into a String. sh-form:how to convert void to String
posted 15 years ago
Hi, The set method in Calender will set values to the calling calendar object. If you need to display the string type of calendar. The toString() method will not produce the results as you want. It just for debugging only. In your case, you can use Date to show the String with the corrent format using SimpleDateFormat.