Wiki

Clone wiki

grails-datatables / dateTimeFormat

dateTimeFormat

Values

Name Type Default
dateTimeFormat String MM/dd/yyyy HH:mm:ss*

*Note that if you are using SQL Server, the default will instead be MMM dd yyyy HH:mma. You can set it to whatever you like, but if you want your column to be searchable, you will need to select a format that is supported by SQL Server's CONVERT function. Refer to w3schools for a description of how SQL Server converts dates.

Description

dateTimeFormat is a configuration option that allows you to specify the format for dateTime values within your table. Refer to the SimpleDateFormat API documentation for the pattern definition.

Example Configuration File Entry

grails.plugin.datatables.dateTimeFormat = "MM/dd/yyyy HH:mm:ss"

See Also

Date Formatting, dbDateTimeFormat, dateFormat, timeFormat, dataType


Back to Options.

Updated