Hi,
Please keep the group clean as possible, there are a plenty of course
problems which must be solved, a lot of people who want to learn, here. The
group is for people who want to learn Java, is not for solving code. Many
are scared about lots of emails who are coming in group and finally quit.
Anyway, you should use Java documentation (which I have used). And no, I am
not a Java guru. Do yourself a favor and search first the documentation. If
you cannot help yourself, search the Internet, but this will take more time,
I think.
import java.text.ParseException;
import java.util.*;
import java.text.SimpleDateFormat;
public class test {
public static void main(String args[]) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z
yyyy");
String test = (new Date()).toString();
Date temp = sdf.parse(test);
System.out.println(test);
System.out.println(temp);
}
}
Best regards,
Vasile Braileanu
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---