[RESOLVED] Change the system date format.
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?
Re: Change the system date format.
Take a look at the Calendar class. I think it has what you are looking for
Re: Change the system date format.
Exactly that what I want. Thanks. Lot to read. I check it out and if any issue, come back here.