私は次のようなコードを持っています
Customer_Todo_Master customerTodo=new Customer_Todo_Master();
customerTodo.setCALCDATE(String type);
こちらsetCALCDATE
はカレンダータイプ。これに文字列を設定するにはどうすればよいsetCALCDATE()
ですか?
SimpleDateFormatクラスを使用:
String str="your string rep of cal";
Calendar cal = Calendar.getInstance();
cal.setTime(new SimpleDateFormat("your date format").parse(str));
customerTodo.setCALCDATE(cal);