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 is Gang of four design patterns
What methods are called, When we navigate from one applet to another applet?
What is Co-Variant return type in method overriding?
What is Session reduplication and how its done?
Is 64bit faster than 32 bit?
What is java autoboxing?
What is a numeric format?
Name the methods that used to get and set the text label displayed by a Buttonobject?
I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose.
In what type of containers, Border layout is a default layout?
Name and explain the types of ways which are used to pass arguments in any function in java.
what is meta-Inf?