converting a string date into US format in java
问题 I have the below code in which date come as string type and I have to set it in US format so below I have shown it private static final SimpleDateFormat usOutputDate = new SimpleDateFormat("MM/dd/yyyy"); and inside a method I have written the below code and inside dealDateString the value is coming as 02-Mar-2015 // dealDateString = 02-Mar-2015 java.util.Date dealDate = extractDate(dealDateString); //here its value get converted in US format that is 03/02/2015 String dd = usOutputDate.format