0

I'm connecting to SQL Server using the Zend_Db_Adapter_Sqlsrv via SQL Server driver for PHP

Wondering how I can insert a date which is read in from a web form in format dd/mm/yyyy into a datetime column

Thanks in advance

db83
  • 169
  • 1
  • 4
  • 13

1 Answers1

1

Try using zend_date or strtotime() and date()

Tomáš Fejfar
  • 11,129
  • 8
  • 54
  • 82
  • $date = new Zend_Date('13/10/2009','dd/mm/yyyy'); Inserting into a datetime column using $date works fine – db83 Oct 13 '09 at 14:24