# Datefield is of type: datetime my $sth = $dbh->prepare('insert into tableName (DateField, OtherField) values (now(),?)');