I am trying to convert a String ("01-OCT-2014") into Date format.
Below is my code for this.
SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yyyy");
Date d= formatter.parse("01-OCT-2014");
System.out.println("Converted date:"+d);
The above code is working fine in Windows.
But when I am running in Unix environment, it is throwing an exception Unparseable date
Can any one help me out in solving this issue..