Home Grails Databinding Dateformate
Reply: 1

Grails Databinding Dateformate

Nilay
1#
Nilay Published in 2018-02-06 10:35:24Z

I have a problem within a grails 2.5 application, when it comes to data binding and correct date formats. I have this formats of date that i want to bind.

grails.databinding.dateFormats = [
'dd/MM/yyyy',
'dd/MM/yyyy HH:mm',
'dd/MM/yyyy HH:mm:ss',
"dd/MM/yyyy'T'hh:mm:ss'Z'",
'yyyy-MM-dd HH:mm:ss',
'yyyy-MM-dd HH:mm:ss.S',
"yyyy-MM-dd'T'hh:mm:ss'Z'"

]

All other are working properly but only this two not working:

'dd/MM/yyyy HH:mm','dd/MM/yyyy HH:mm:ss'

Is there any solution?

Nilay
2#
Nilay Reply to 2018-02-12 07:11:54Z

Thank you Mike W yes you are right i just changed my order and it is working fine.

Now:

grails.databinding.dateFormats = [ 'dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy', 'yyyy-MM-dd HH:mm:ss', 'yyyy-MM-dd HH:mm:ss.S', "yyyy-MM-dd'T'hh:mm:ss'Z'" ]

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.357115 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO