playframework - Bind a Date in milliseconds representation -


i need bind date using milliseconds representation in controller (i.e. milliseconds 01.01.1970). tried using @as("s") had no success, fails value @ least 1000. there no way without writing custom binder?

edit: seems writing custom binder way go because play's datebinder uses simpledateformat , because of this bug. simpledateformat doesn't accept these kinds of formats.

afaik there's no way, because binder trying parse expecting date fields (and date millisec field 3 digit), , not calculate anything.

it's better bind millisecs long , create date it.


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

java - Why is BlockingQueue.take() not releasing the thread? -

jQuery Ajax Render Fragments OR Whole Page -