Wiki
Clone wikigrails-datatables / dbDateFormat
dbDateFormat
Values
Name | Type | Default |
---|---|---|
dbDateFormat | String | MM/DD/YYYY * |
*Note that if you are using SQL Server, the default will instead be 101
. Refer to w3schools for a description of how SQL Server converts dates.
Description
dbDateFormat
is a configuration option that allows you to specify the database format for date values within your table. This option is only relevant when you are using server-side processing. The database format must match the format you have selected for the dateFormat option, only using the format pattern appropriate for your database. The reason this is a separate field is that the plugin needs to know how to format dates in the database in order to provide the search function.
Example Configuration File Entry
grails.plugin.datatables.dbDateFormat = "MM/DD/YYYY"
See Also
Date Formatting, dateFormat, dbDateTimeFormat, dbTimeFormat, dataType, serverSide, Database Compatibility
Back to Options.
Updated