Question: how to convert dd-mmm-yy to yyyy-mm-dd in java?
Answer: However Java provides several APIs to accomplish this. import java. text. *; SimpleDateFormat sdfmt1 = new SimpleDateFormat("dd/MM/yy"); SimpleDateFormat sdfmt2= new SimpleDateFormat("dd-MMM-yyyy"); java.