Got TIME for a DATE?
 
 
- Date and time types are strings in the native database format
- 
- many valid formats, some incompatible or ambiguous 'MM/DD/YYYY' vs 'DD/MM/YYYY'
 
- Obvious need for a common format
- 
- The SQL standard (ISO 9075) uses 'YYYY-MM-DD' and 'YYYY-MM-DD HH:MM:SS'
 
- DBI now says using a date/time TYPE mandates ISO 9075 format
- 
$sth->bind_param(1, "2004-12-31", SQL_DATE);
 
 $sth->bind_param(2, "2004-12-31 23:59:59", SQL_DATETIME);
 $sth->bind_col(1, \$foo, SQL_DATETIME); # for selecting data
 
 
- Driver is expected to convert to/from native database format
- 
- New feature, as of DBI 1.43, not yet widely supported