Q:

In Java, What can I use to convert the string "27/Jun/1991" to a date or timestamp?

In Java, What can I use to convert the string "27/Jun/1991" to a date or timestamp?

A:

try this
SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yyyy", Locale.ENGLISH);
Date date = sdf.parse("27/Jun/1991");
System.out.println(date);

output
Thu Jun 27 00:00:00 EEST 1991

