GORM default Date format when sending date to Grails

I am sending a JSON PUT request to Grails. In a JSON object, I have a date string. I searched and experimented, but cannot determine the default date string format that GORM wants to parse the date string. In all my attempts, I get the following error:

java.lang.IllegalArgumentException: Failed to parse date: date not available

I just want to know the default format that GORM expects, and I will gladly format the date string in that format before sending it to the server.

+4
source share
1 answer

I assume that you encountered this problem during data binding.

:
yyyy-MM-dd HH:mm:ss.S

:
PropertyEditorRegistrar. . .

+11

All Articles