I’ve been learning Play Framework, and the recommended way to access a database is using the build in anorm component. Thing is, there’s no good support for DateTime in anorm. It’s still using java.util.Date.
Is there any way to use Joda DateTime or java.sql.Timestamp in anorm?
If there’s no way to use Joda or java.sql, can we add a module for that?
update: Since play 2.3.7 this is now natively supported.
I am using the following piece of code to work with DateTime seamlessly with Anorm.
I think it should definitively be part of Anorm, just need to be polished and more tested.
Let me know if it has helped you.