php - datetime current date for save in mysql table [1]

As an solution for snap:
voted: 2
php mysql date

Clarification will help for people who aren't sure. You first create a variable to store your information, then call the php date function so that it is stored in the variable. Add format parameters so the date is displayed the way you'd like it to be.


//Store the date in a variable
$currDate = Date('m-d-Y'); 

//this will print the date with the format I've chosen
echo $currDate;
working url:
version: not entered
Leave a Comment:
Characters left:
No comments yet.