how do i get day from a date??
- Posted by: Amit Gupta
- Posted on: March 15 2003 00:31 EST
I ve a String and i want to get the Day from the String Date ...
Can any one Tell me ?
String dt = "03/15/2003";
Date d = new Date(dt);
System.out.println("DATE:" + d.getDay());
The component retrieval methods of java.util.Date are deprecated (because they cannot support localization well). You should use methods of java.util.Calendar instead.