how to convert mm/dd/yy to dd/mm/yy using collections in
java.
Answers were Sorted based on User's Feedback
Answer / sankar
Hi, Here is the Program
import java.util.Date;
import java.text.SimpleDateFormat;
class DateConversion{
public static void main(String ar[])throws Exception
{
String strDate = "06/12/2008";
SimpleDateFormat srcDate = new SimpleDateFormat
("mm/dd/yyyy");
SimpleDateFormat destDate = new SimpleDateFormat
("dd/mm/yyyy");
System.out.println(destDate.format
(srcDate.parse(strDate)));
}
}
| Is This Answer Correct ? | 19 Yes | 6 No |
Answer / sandya
Thanks Shankar.
can u send more examples on Date.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / zaini
SimpleDateFormat srcDate = new SimpleDateFormat
("MM/dd/yyyy");
SimpleDateFormat destDate = new SimpleDateFormat
("MM/mm/yyyy");
| Is This Answer Correct ? | 1 Yes | 1 No |
What are the names of interfaces that doesn't consists of method/s ?
What is the purpose of premetive data types in java?
What is a final class in java?
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
Explain methods specific to list interface?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
How big is a boolean?
what is mean by method signature?
What is the difference between dom and sax parser in java?
Difference between this() and super() in java ?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
When is an object subject to garbage collection?