create new date now php code example Example 1: date now php date('Y-m-d H:i:s') Example 2: date now php date("Y-m-d H:i:s");