add more date formats support in datebinder

Bug #446302 reported by xiaocase
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Confirmed
Undecided
Nicolas Leroux

Bug Description

now, in play/data/binding/DateBinder.java, date format only support
these:

"yyyy-MM-dd'T'hh:mm:ss'Z'", // ISO8601 + timezone
"yyyy-MM-dd'T'hh:mm:ss", // ISO8601
"yyyy-MM-dd",
"yyyyMMdd'T'hhmmss",
"yyyyMMddhhmmss",
"dd'/'MM'/'yyyy",
"dd-MM-yyyy",
"ddMMyyyy",
"MMddyy",
"MM-dd-yy",
"MM'/'dd'/'yy"

please add more formats support, like:
"yyyy-MM-dd hh:mm:ss",
"yyyyMMdd hhmmss",
"dd'/'MM'/'yyyy hh:mm:ss",
"dd-MM-yyyy hh:mm:ss",
"ddMMyyyy hhmmss",
"MMddyy hhmmss",
"MM-dd-yy hh:mm:ss",
"MM'/'dd'/'yy hh:mm:ss"

or provider a way to add these myself if needed.

Changed in play:
assignee: nobody → Nicolas (nicolas-lunatech)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.