Created
December 16, 2014 17:06
-
-
Save urcadox/fe010243520e79c9a25b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.joda.time.format.ISODateTimeFormat | |
implicit val dateTimeBinder = new QueryStringBindable.Parsing[DateTime]( | |
ISODateTimeFormat.dateTime.parseDateTime _, | |
ISODateTimeFormat.dateTime.print _, | |
(key: String, e: Exception) => s"Cannot parse parameter $key as DateTime: ${e.getMessage}" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment