Преобразовать строку: «11 апреля 2009 г.» в тип даты [дубликат]JAVA

Программисты JAVA общаются здесь
Гость
Преобразовать строку: «11 апреля 2009 г.» в тип даты [дубликат]

Сообщение Гость »


I have a input string:"11-Apr-2009"

I'd like to convert it to Date type and output still the same with my input "11-Apr-2009". How can I archieve this?

Note: The method to add object required Date type parameter meanwhile the attribute of date is String. The method:

Код: Выделить всё

public boolean addExpense(List list, Date date,                           double amount,  String content) 


Источник: https://stackoverflow.com/questions/781 ... -date-type

Вернуться в «JAVA»