scala> implicit def dateToString(date:java.util.Date):String = { | import java.text._ | println("java.util.DateからStringへ変換") | val sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss") | sdf.format(date) | } warning: there were 1 feature warning(s); re-run with -feature for details dateToString: (date: java.util.Date)String scala> val strDate:String = new java.util.Date() java.util.DateからStringへ変換 strDate: String = 2014/03/11 00:19:07