we can easily get current date using below method.
$currentdate = date(‘d-m-Y’);
echo $currentdate;
Here –
1. $currentdate is variable.
2. just we use date() method and “d-m-Y” is format of date we can change as per requirement.
we can easily get current date using below method.
$currentdate = date(‘d-m-Y’);
echo $currentdate;
Here –
1. $currentdate is variable.
2. just we use date() method and “d-m-Y” is format of date we can change as per requirement.