Skip to content

apitabledefinitiondate

Troy Murray edited this page Sep 19, 2011 · 2 revisions

date()

Usage

Adds a date column definition to the table definition object

Function Syntax

t.date(columnNames[,default,null]);

Parameters

Parameter Type Required Default Description
columnNames string Yes one or more column names, comma delimited
default string | integer No default value for column
null boolean No whether nulls are allowed

Notes

Some databases cannot store a date alone and will use a datetime data type instead.

Examples

Clone this wiki locally