Play supports java.sql.Date, you just need to do the mapping as
def testForm: Form[Test] = {
Form(
mapping(
"id" -> number,
"date" -> sqlDate)(Test.apply)(Test.unapply)))
}
Note that I haven't tested it, but the docs show that sqlDate
exists.
Another option would be to define a type mapping between java.util.Date and java.sql.Date in slick. Look here to see how.
Also, if you haven't yet, look at joda time or some scala wrapper. It will probably make working with dates and times easier.