Skip to content

Instantly share code, notes, and snippets.

@opensas
opensas / DateFormatter.scala
Created May 30, 2012 05:53
Play framework 2 Jerkson json serializer / deserializer for Date data type
package formatters.json
import play.api.libs.json.Json.toJson
import play.api.libs.json.JsValue
import play.api.libs.json.Format
import java.util.Date
import java.text.SimpleDateFormat
object DateFormatter {