I am trying call org.joda.time.format.DateTimeFormatter#forPattern method.
But following seems not working.
scala> import org.joda.time.format.DateTimeFormatter
import org.joda.time.format.DateTimeFormatter
scala> DateTimeFormatter.forPattern("yyyyMMdd")
<console>:30: error: value forPattern is not a member of object org.joda.time.format.DateTimeFormatter
DateTimeFormatter.forPattern("yyyyMMdd")
^
Any pointer would be appreciated.