I am converting string to datetime field using joda.time.Datetime libraries but it throws unsupported exception Here is main class code:
//create new var with
Thanks zero323 for the solution. I used java.sql.Timestamp and here is the code I modified
val dateYMD: java.sql.Timestamp = new java.sql.Timestamp(DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss").parseDateTime(p(8)).getMillis)
testData(dateYMD)}.toDF().show()
and changed my class to
case class testData(GamingDate: java.sql.Timestamp) { }