One of my Java applications I want to get the system date and time. Say I’m going to use the following class to do that.
Code:
import java.util.*;


public class Get_System_Time
{
	public static void main(String[] arguments)
	{
		Date cDate = new Date();

	// Current date
		System.out.println(cDate);
	}
}
Output is,

Wed May 30 08:27:37 LKT 2007

Actually I’m worried about only the date (Wed May 30). But I want to change it little, print the full date, like Wednesday May 30. How can I do that?