how do i get day from a date??
I ve a String and i want to get the Day from the String Date ...
Can any one Tell me ?
-
how do i get day from a date?? (2 messages)
- Posted by: Amit Gupta
- Posted on: March 15 2003 00:31 EST
Threaded Messages (2)
- how do i get day from a date?? by Naresh Pillai on March 15 2003 07:42 EST
- how do i get day from a date?? by Gal Binyamini on March 15 2003 08:20 EST
-
how do i get day from a date??[ Go to top ]
- Posted by: Naresh Pillai
- Posted on: March 15 2003 07:42 EST
- in response to Amit Gupta
String dt = "03/15/2003";
Date d = new Date(dt);
System.out.println("DATE:" + d.getDay()); -
how do i get day from a date??[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: March 15 2003 08:20 EST
- in response to Naresh Pillai
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.
Gal