how to get the current year in php
Get the current year using PHP:
<?php
echo date("Y");
?>
how to get the current year in php
Get the current year using PHP:
<?php
echo date("Y");
?>
financial year calculation in php
function get_finacial_year_range() {
$year = date('Y');
$month = date('m');
if($month<4){
$year = $year-1;
}
$start_date = date('d/m/Y',strtotime(($year).'-04-01'));
$end_date = date('d/m/Y',strtotime(($year+1).'-03-31'));
$response = array('start_date' => $start_date, 'end_date' => $end_date);
return $response;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us