date now in php
$today = date("F j, Y, g:i a"); // October 30, 2019, 10:42 pm
$today = date("D M j G:i:s T Y"); // Wed Oct 30 22:42:18 UTC 2019
$today = date("Y-m-d H:i:s"); // 2019-10-30 22:42:18(MySQL DATETIME format)// 1. create a date instance
$date = new DateTime;
// 2. set the date using the setDate(year, month, date) method on the
// $date instance
$date->setDate(1999,02,19);$currentYear=date("Y");//2019date('Y-m-d H:i:s')
Also in PHP:
- Add “Affected Products” in catalog price rule
- find index of a charachter charachrer isn string phph
- associative array rev in php
- connexion à la base de donnée microsoftsqlserver avec php
- check array key exit php
- add on day to date php
- Class 'App\Http\Controllers\Session' not found
- array unique php by value
- check a specific word exist in php
- codeigniter delete record by id
- change datetime format from Y-m-d h:i:s to d-m-Y in php
- ci db query error
- Laravel disable login and register route
- echo all error
- add days php
- check typo of variable php
- Laravel Excel numbers formatted as text still appearing as number
- add() in php
- check if string contains php
- Laravel 8 clear cache
- date('r') php
- date today in php
- create a button add in laravel
- check if char exists in string php