Created
June 23, 2016 09:20
-
-
Save peterlozano/df6330ebbe28e5ccf0157e49a8811616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For field of type datestamp | |
db_insert('table') | |
->fields(array( | |
'created' => date_create()->format('Y-m-d H:i:s'), | |
)) | |
->execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment