Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to convert mm/dd/yy to dd/mm/yy using collections in
java.

Answers were Sorted based on User's Feedback



how to convert mm/dd/yy to dd/mm/yy using collections in java...

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

how to convert mm/dd/yy to dd/mm/yy using collections in java...

Answer / sandya

Thanks Shankar.
can u send more examples on Date.

Is This Answer Correct ?    3 Yes 0 No

how to convert mm/dd/yy to dd/mm/yy using collections in java...

Answer / ravi jain

Dear Sankar ur ans is ok bur it has some mistakes

suppose if some one enter month value <12,
this program accept dis as well
can u modify dis so that it wouldn't accept
month value greater than 12...

Ravi jain

Is This Answer Correct ?    2 Yes 2 No

how to convert mm/dd/yy to dd/mm/yy using collections in java...

Answer / zaini

SimpleDateFormat srcDate = new SimpleDateFormat
("MM/dd/yyyy");
SimpleDateFormat destDate = new SimpleDateFormat
("MM/mm/yyyy");

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is Gang of four design patterns

0 Answers   Infosys,


What methods are called, When we navigate from one applet to another applet?

1 Answers  


What is Co-Variant return type in method overriding?

1 Answers   RBS,


What is Session reduplication and how its done?

0 Answers  


Is 64bit faster than 32 bit?

0 Answers  


What is java autoboxing?

0 Answers  


What is a numeric format?

0 Answers  


Name the methods that used to get and set the text label displayed by a Buttonobject?

1 Answers  


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.

2 Answers   Oracle,


In what type of containers, Border layout is a default layout?

3 Answers  


Name and explain the types of ways which are used to pass arguments in any function in java.

0 Answers  


what is meta-Inf?

2 Answers   Polaris,


Categories