Format Class |
GetFormatter
SetFormatter
Field
Namespace: DataTables
public static class Format
The Format type exposes the following members.
Name | Description | |
---|---|---|
DateFormatToSql |
Convert to SQL date / date time format (ISO8601) from a format given by the options parameter.
| |
DateSqlToFormat |
Convert from SQL date / date time format (ISO8601) to a format given by the options parameter.
| |
DateTime |
Convert from one date time format to another
| |
Explode |
Convert a string of values into an array for use with checkboxes.
| |
FromDecimalChar |
Convert a number from using any character other than a period (dot) to
one which does use a period.This is useful for allowing numeric user
input in regions where a comma is used as the decimal character. Use with
a set formatter.
| |
IfEmpty |
Convert an empty string to `null`. Null values are very useful in
databases, but HTTP variables have no way of representing `null` as a
value, often leading to an empty string and null overlapping. This method
will check the value to operate on and return null if it is empty.
| |
Implode |
Convert an array of values from a checkbox into a string which can be
used to store in a text field in a database.
| |
NullEmpty |
Convert an empty string to `null`. Null values are very useful in
databases, but HTTP variables have no way of representing `null` as a
value, often leading to an empty string and null overlapping. This method
will check the value to operate on and return null if it is empty.
| |
ToDecimalChar |
Convert a number with a period (dot) as the decimal character to use
a different character(typically a comma). Use with a get formatter.
|
Name | Description | |
---|---|---|
DATE_ISO_1036 |
Date format: Fri, 9 Mar 12. jQuery UI equivalent format: D, d M y
| |
DATE_ISO_1123 |
Date format: Fri, 9 Mar 2012. jQuery UI equivalent format: D, d M yy
| |
DATE_ISO_2822 |
Date format: Fri, 9 Mar 2012. jQuery UI equivalent format: D, d M yy
| |
DATE_ISO_822 |
Date format: Fri, 9 Mar 12. jQuery UI equivalent format: D, d M y
| |
DATE_ISO_850 |
Date format: Friday, 09-Mar-12. jQuery UI equivalent format: DD, dd-M-y
| |
DATE_ISO_8601 |
Date format: 2012-03-09. jQuery UI equivalent format: yy-mm-dd
|